GoogleChromeLabs / worker-plugin

👩‍🏭 Adds native Web Worker bundling support to Webpack.
https://npm.im/worker-plugin
Apache License 2.0
1.91k stars 79 forks source link

webpack build fails #92

Closed dreammonkey closed 3 years ago

dreammonkey commented 3 years ago

I'm trying to build an (ejected) create-react-app which is working fine in development (yarn start) When Ì run yarn build I run into the error below... I have no idea what's wrong, any input is highly appreciated !

$ yarn build
yarn run v1.22.4
$ node scripts/build.js
Creating an optimized production build...
Failed to compile.

./src/worker/MyWorker.js (./node_modules/worker-plugin/dist/loader.js?name=MyWorker!./src/worker/MyWorker.js)
  Line 39:30:  Expected an assignment or function call and instead saw an expression  no-unused-expressions

PS: I'm using comlink as well