Open Demiurg-ls opened 5 years ago
@Demiurg-ls it it seems to be the js minifier problem maybe? the minifier seems to return undefined and passes it as content of file, my library merges the files in the order in the list as is, without wrapping them in new scope as opposed to using loaders, and this may cause conflicting variables issue which may be solved with const/let in this case, maybe you could try merging the files with conflicting variables into different final js files or seeing exactly what error does the minifer throw
i have the same problem, it's because of the uglify-js.
i used Terser js inside the transform like below:
transform: {
'assets/js/plugins.js': code => Terser.minify(code).code
}
const remained as const but still got minified xD
Hi,
A bug has hit me while I was trying to process webpack task. After adding a new file to a list of meged *.js an error has appeared:
The reason was using "let" and "const" in added "lazyload.2.x.js". After I has changed all instances to "var" the file has been merged successfully. The fragment of my webpack config file: