Skip to content

Commit

Permalink
fix: build error on MacOS 11 from rollup-plugin-terser (#2515)
Browse files Browse the repository at this point in the history
`Error: kill EPERM`
  • Loading branch information
pskelin authored Nov 25, 2020
1 parent e7dd012 commit 0629fac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/tools/components-package/rollup.js
Original file line number Diff line number Diff line change
@@ -60,7 +60,9 @@ const getPlugins = ({ transpile }) => {
plugins.push(nodeResolve());

if (!process.env.DEV) {
plugins.push(terser());
plugins.push(terser({
numWorkers: 1, // temp workaround for `Error: kill EPERM` error on MacOS 11
}));
}

if (process.env.DEV) {

0 comments on commit 0629fac

Please sign in to comment.