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
es5-build file has spread operator in code (and erroring in IE 11) #684
Comments
We shouldn't even need any code to check for node. Can you help fix this? |
I haven't used rollup.js before, but after looking at the vega project's rollup, I wonder if the babel plugin would help here: https://github.com/vega/vega/blob/master/rollup.config.js |
The es5 build is actually I will remove es5 bundles in the next release anyway so I won't have the cycles to investigate this further. Do you have time to fix this issue? |
Understandable about dropping the ES5 support. I'll see what I can do about resolving this issue. I played around with it a bit, and I think the project's I tried adding this to the transpiler: "babel",
babelConfig: {"presets": ["@babel/preset-env"], "targets": "defaults"}, |
Ohhh, that would make sense. We need the babel config for jest so we should ignore that for the build. To fix rollup/rollup#4067, you can use an older version of rollup. Feel free to pin to a previous version for now. |
Fixed in #689 |
I'm seeing a "Syntax error" at line 11, column 3240, which in the minified file - https://cdn.jsdelivr.net/npm/vega-embed@6/build-es5/vega-embed.min.js - is the spread operator in this code:
Or in the non-minified file - https://cdn.jsdelivr.net/npm/vega-embed@6.17.0/build-es5/vega-embed.js - looks like the code is this:
Is some 3rd party code not being transpiled?
The text was updated successfully, but these errors were encountered: