We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfbd2d1 commit 10ea516Copy full SHA for 10ea516
rollup-script.js
@@ -2,6 +2,7 @@ const child_process = require('child_process');
2
const path = require('path')
3
4
if (parseFloat(process.version.match(/^v(\d+\.\d+)/)[1]) < 10) {
5
+ child_process.spawnSync(`npm install rollup@1`, {stdio: 'inherit'})
6
child_process.spawnSync(`node ${path.resolve('./node_modules/rollup-old/dist/bin/rollup')} -c -f umd --file=bundle/worker.js --name=threads -- dist-esm/worker/bundle-entry.js`, {stdio: 'inherit'})
7
} else {
8
child_process.spawnSync(`node ${path.resolve('./node_modules/rollup/dist/bin/rollup')} -c -f umd --file=bundle/worker.js --name=threads -- dist-esm/worker/bundle-entry.js`, {stdio: 'inherit'})
0 commit comments