TrySound / rollup-plugin-uglify

Rollup plugin to minify generated bundle
MIT License
260 stars 42 forks source link

(uglify plugin) Error: `sourcemap` is not a supported option #64

Open marnor opened 5 years ago

marnor commented 5 years ago

Hi!

When running rollup using the rollup-plugin-uglify I get an error:

(uglify plugin) Error:sourcemapis not a supported option

It seems to have to do with an update to the serialize-javascript plugin where they no longer remove keys that has an undefined value. Hence the sourcemap (all lowercase) option is passed to uglify that throws an error since that is an invalid option (should be camelcased).

This error also happens for the numWorkers option.

seanlandsman commented 5 years ago

Nice find

Pinning

"serialize-javascript": "1.8.0",

helps my build to continue until this issue is resolved