For whatever reason that this has worked in the past, in node 14+ the behavior appears to have been changed.
The `cascade` option is not mentioned in the list of valid options and since error message were implicitly suppressed, this went by unnoticed.
Fixes #3520
.forEach(filename => {
console.time(filename);
{
- let output = compiler.compile(process.cwd() + `/${filename}`);
+ let output = compiler.compile(fs.readFileSync(process.cwd() + `/${filename}`, 'utf-8'));
fs.writeFileSync(filename.replace(/\.js$/, '.min.js'), output.code);
}
console.timeEnd(filename);
hoist_vars: true,
if_return: true,
join_vars: true,
- cascade: true,
/* this is basically the `--define` argument */
global_defs: {
COMPILER_TARGET_DEFAULT: false
filename,
Object.assign(uglifyJsConfig, overrides));
}
-}
\ No newline at end of file
+}