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
When using Webpack Encore in a project with "type": "module" in package.json the resulting bundle file contains require calls which include the polyfills through @babel/preset-env. These should have been replaced by wepack with the file contents. This problem does not occur when using a simple plain webpack config.
Removing "type": "module" (and rewriting the config as commonjs) the issue is not present.
When using Webpack Encore in a project with
"type": "module"
in package.json the resulting bundle file containsrequire
calls which include the polyfills through@babel/preset-env
. These should have been replaced by wepack with the file contents. This problem does not occur when using a simple plain webpack config.Removing
"type": "module"
(and rewriting the config as commonjs) the issue is not present.Reproduction repository: https://github.com/m10/encore-type-module
Also see branch "commonjs" for a working version without type module: https://github.com/m10/encore-type-module/tree/commonjs
and the branch "webpack" for a working version with type module but without encore, using a simple webpack config instead: https://github.com/m10/encore-type-module/tree/webpack
The text was updated successfully, but these errors were encountered: