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

Add separate build for web target #94

Merged
merged 4 commits into from
Jun 16, 2020
Merged

Conversation

yellott
Copy link
Contributor

@yellott yellott commented Jun 14, 2020

After upgrade from 1.1.0 to 1.2.0/1.2.1 we noticed that workers stopped working in IE (arrow functions caused syntax error). It seems to be related to microbundle upgrade here
This commit just adds separate build with target 'web' so both 'rpc-wrapper.js' and 'rpc-worker-loader.js' can be executed without having syntax error in old environments.

I didn't find a better way than just adding another build command. Maybe there is a better way to do that with microbundle

@developit
Copy link
Owner

developit commented Jun 16, 2020

Ack! I feel terrible I didn't see this before I fixed #95!

I had originally tried to use browserslist, but it turns out we ignore that when compiling for Node in microbundle.

@yellott
Copy link
Contributor Author

yellott commented Jun 16, 2020

@developit yeap, I was digging source of mircobundle a bit before this fix

@yellott
Copy link
Contributor Author

yellott commented Jun 16, 2020

@developit so this commit a6423f7 seems to fix the problem

@developit developit merged commit 01305ae into developit:master Jun 16, 2020
@developit
Copy link
Owner

Released in 1.3.0.

@yellott
Copy link
Contributor Author

yellott commented Jun 16, 2020

Thank you)

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

Successfully merging this pull request may close these issues.

2 participants