-
Notifications
You must be signed in to change notification settings - Fork 86
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
IE11 - SCRIPT0: Syntax error #95
Comments
The error occurs somewhere along thus lines:
|
This should fix the issue noted in #95.
Ooof - good catch! The untransformed |
I'll get a release out shortly! |
Thanks a ton! I'll test it out once it's released. |
@developit not sure if browserslist can work with target node, I had similar issue here #94 |
This is fixed in 1.3.0. |
@stanyq4 you'll need to include a Promise polyfill in the worker module - not just for workerize, but also because Webpack itself requires it. I'd recommend installing promise-polyfill, then importing it as the first line of your worker module: // my-worker.js
import 'promise-polyfill';
export const generateCsv = (data) => {
console.log('doing work');
}; |
That worked, thank you again @developit Just FYI for others, you gotta use the following import syntax as described in docs:
|
Awesome! I've just added that to the readme. I'd strongly recommend the first form ( |
This was the last fix necessary for #95.
Does the library work with IE 11?
I am getting the following error when trying to test with IE11:
My worker setup is very minimal as it's shown in the demo.
export.service.js
:worker.js
:The text was updated successfully, but these errors were encountered: