When importing workerize in a cra app the build fail with this message
> react-scripts build
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/workerize/src/index.js:23
Read more here: http://bit.ly/2tRViJ9
I was able to make it work using import workerize from 'workerize/dist/workerize.m.js'
When importing
workerize
in a cra app the build fail with this messageI was able to make it work using
import workerize from 'workerize/dist/workerize.m.js'