Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default export fails to build with create-react-app #12

Closed
quentin-sommer opened this issue Jan 14, 2018 · 2 comments
Closed

default export fails to build with create-react-app #12

quentin-sommer opened this issue Jan 14, 2018 · 2 comments

Comments

@quentin-sommer
Copy link

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'

@developit
Copy link
Owner

Whoops, the "module" entry is wrong.

@developit
Copy link
Owner

Fixed in 0.1.3!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants