You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The name module is meaningless here. The standard doesn’t specify any special behavior for it. You can give it meaning using --conditions=module if you’d like: https://esbuild.github.io/api/#conditions.
Description
The
tslib
package.json condition exports has amodule
filed.It can be webpack used and keep bundle result correctly, but esbuild is not (esbuild use
import
).Reproduction
https://github.com/underfin/bug-reporter/tree/master/esbuild-tslib
esbuild output https://github.com/underfin/bug-reporter/blob/master/esbuild-tslib/esbuild-output.js#L454
webpack output https://github.com/underfin/bug-reporter/blob/master/esbuild-tslib/webpack-output/main.js#L23
Maybe helpers issue
module
condition, so webpack loads es6 module version microsoft/tslib#129The text was updated successfully, but these errors were encountered: