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
{{ message }}
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.
I am wondering if this tool allows using various kinds of module loaders such as babel-loader, I tried to use that with babel-loader, but it seems skip the loader and not understand ES6 in the build.
The text was updated successfully, but these errors were encountered:
@tonykung06 thanks the feedback! That indeed explains it all: its a documentation error.
The baseOptions are combined with each of the variants and then passed together as a single object to the createConfig callback.
Our use case for that is for options which are the same for all variants but still dynamic, i.e. they're being created from the environment or command line arguments or the result of some executed command or from reading an additional configuration file.
So, for each variant, the result of Object.assign({}, baseConfig, variant) is being passed to createConfig which should then return a valid Webpack configuration (or a Promise of such a configuration).
I'll adjust the documentation and make that concept clearer.
Again, thank you for the feedback! Please let me know if you have any further questions.
I am wondering if this tool allows using various kinds of module loaders such as babel-loader, I tried to use that with babel-loader, but it seems skip the loader and not understand ES6 in the build.
The text was updated successfully, but these errors were encountered: