-
Notifications
You must be signed in to change notification settings - Fork 840
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
EUI doesn't transpile bundle to ES5 #875
Comments
Look's like the issue is EUI's @pugnascotia thoughts? does Kibana benefit from building against the original source? |
The npm package also contains a transpiled bundle, but you'd have to import from |
I actually tried exactly this with |
Cloud UI is just importing from |
@chandlerprall Do we have any intention of changing anything here? You could argue that it's the consumer's problem - for example, I've heard that Gatsby imports from EUI just fine, so its webpack config is presumably configured similarly to Cloud UI. |
@pugnascotia Right. The issue is that create-react-app intentionally made the choice to use Not publishing |
This also affects canvas, which has to include a webpack config targeting EUI to compile. |
Although I personally find it handy having |
+1 to removing |
I wanted to play with EUI outside Kibana, by using
create-react-app
:This throws the following error:
it seems to be caused by the rest parameter, which is an ES6 feature. The webpack config for
create-react-app
does not currently transpile code innode_modules
and expects it to be es5 (afaict)It's very possible that
create-react-app
will transpilenode_modules
in the future - but that will be for the upcoming v2 (release date unknown)This is also a problem for ordinary webpack setups (that exclude
node_modules
by default) so it might be worth looking into even after v2 comes out.The text was updated successfully, but these errors were encountered: