-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Support es modules syntax in .config & webpack.config #155
Comments
What's the node version you are running? I hope it's not 5.x.x Otherwise, use the latest node version. |
is this not compatible with 5.x.x? So eitherway I will have to stick to es5 in |
Hmm. That's weird. This is the place which loads, babel config for client apps. |
@arunoda It would be nice to be able to use things like |
My solution to this was use webpack.config.jsrequire('babel-register');
module.exports = require('./webpack.config.es6.js'); webpack.config.es6.jsimport config from '../config';
//whatever other es6 code you need
export default config; |
@jxodwyer / @moroshko / @loudwinston - Rename |
@arunoda Does storybook automatically load webpack.config.babel.js? Seems like it does not, it only tries to read webpack.config.js |
@vvo we only support For the webpack config, we need to use ES5. (or something supported by your Node version). |
@arunoda webpack is able to either load webpack.config.babel.js if present (and will use .babelrc) or load webpack.config.js otherwise. Would you want to support this in storybook too? |
@vvo That's not in our plans yet. If we are going to do so, we'll do it for the |
A PR for this is very much welcome! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
Will be implemented in #1209 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Hi, this issue is still a problem in my app. The webpack config is rather complex and need ES6 (coming from electron-react-boilerplate). Having a separate config causes discrepancies between Storybook and the app. What could be a possible solution in current Storybook version? Edit: using |
It seems as though babel isn't working properly for me. Here's my .babelrc file:
and my .storybook/webpack.config.js file:
Error I'm seeing:
The text was updated successfully, but these errors were encountered: