Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: numWorkers is not a supported option #81

Open
vitalets opened this issue Dec 30, 2019 · 3 comments
Open

Error: numWorkers is not a supported option #81

vitalets opened this issue Dec 30, 2019 · 3 comments

Comments

@vitalets
Copy link

Full error with stack:

[!] (plugin uglify) Error: `numWorkers` is not a supported option
DefaultsError: `numWorkers` is not a supported option
    at DefaultsError.get (eval at <anonymous> (/Users/user/projects/project1/node_modules/uglify-js/tools/node.js:18:1), <anonymous>:71:23)
    at reportError (/Users/user/projects/project1/node_modules/jest-worker/build/workers/processChild.js:107:11)
    at reportClientError (/Users/user/projects/project1/node_modules/jest-worker/build/workers/processChild.js:87:10)
    at execFunction (/Users/user/projects/project1/node_modules/jest-worker/build/workers/processChild.js:157:5)
    at execHelper (/Users/user/projects/project1/node_modules/jest-worker/build/workers/processChild.js:139:5)
    at execMethod (/Users/user/projects/project1/node_modules/jest-worker/build/workers/processChild.js:143:5)
    at process.on.request (/Users/user/projects/project1/node_modules/jest-worker/build/workers/processChild.js:64:7)
    at process.emit (events.js:198:13)

Rollup config:

rollup({
  input: "main.js",
  plugins: [
    uglify({
      numWorkers: 1
    })
  ]
});

versions:

    "rollup": "^1.27.14",
    "rollup-plugin-uglify": "^6.0.4",
@oMaten
Copy link

oMaten commented Mar 30, 2020

Same problem occurred on my project with rollup-plugin-uglify@6.0.4

@oMaten
Copy link

oMaten commented Mar 30, 2020

@vitalets I found that option has been removed but the doc not updated yet, #53 (comment)

@TrySound
Copy link
Owner

It was not removed but not properly handled. Anyway, use rollup-plugin-terser. It's well maintained and support es6+ syntax.
https://github.com/TrySound/rollup-plugin-terser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants