Skip to content

Commit 0629fac

Browse files
authored
fix: build error on MacOS 11 from rollup-plugin-terser (#2515)
`Error: kill EPERM`
1 parent e7dd012 commit 0629fac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/tools/components-package/rollup.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ const getPlugins = ({ transpile }) => {
6060
plugins.push(nodeResolve());
6161

6262
if (!process.env.DEV) {
63-
plugins.push(terser());
63+
plugins.push(terser({
64+
numWorkers: 1, // temp workaround for `Error: kill EPERM` error on MacOS 11
65+
}));
6466
}
6567

6668
if (process.env.DEV) {

0 commit comments

Comments
 (0)