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
I think it might be good to include information on how to use ES6 module imports (import {merge} from 'webpack-merge';) in a webpack.config.js file. Just trying to replace the old CommonJS require() doesn't work. From what I can see, you have to route the config file through Bable to change over the imports back to CommonJS.
Am I missing something here?
The text was updated successfully, but these errors were encountered:
Available import types depend a lot on the environment. If you do webpack.config.babel.js, I recall it should try to use Babel. With webpack.config.ts, it would go through tsc.
I think I'll rewrite the imports to CommonJS style as that's the lowest common denominator. Thanks!
On 6. Jul 2020, at 18.19, Mark Garrett ***@***.***> wrote:
@bebraw Thanks. I think it will cut down on the confusion with those of us who are relative Webpack/node neophytes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
I think it might be good to include information on how to use ES6 module imports (
import {merge} from 'webpack-merge';
) in awebpack.config.js
file. Just trying to replace the old CommonJSrequire()
doesn't work. From what I can see, you have to route the config file through Bable to change over the imports back to CommonJS.Am I missing something here?
The text was updated successfully, but these errors were encountered: