Skip to content

ismail-syed/esbuild-stdin-external-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esbuild-stdin-external-bug

This repo is intended to demonstrate a bug found in esbuild. The externals config is not respected when stdin is used.

In the success case, the build succeeds when the app is referenced using the entryPoints config. However, if stdin.contents is used, esbuild fails.

# node v12.20.1

# install deps
$ yarn install

# build succeeds with entryPoints
$ node esbuild-entrypoints.js


# build fails with stdin
$ node esbuild-stdin.js

# ./app.jsx:2:29: error: Could not resolve "react" (mark it as external to exclude it from the bundle)
# ./app.jsx:3:30: error: Could not resolve "react-dom/server" (mark it as external to exclude it from the bundle)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published