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

Support .storybook/babel.config.js #4084

Closed
wants to merge 2 commits into from
Closed

Conversation

Hypnosphi
Copy link
Member

Copy link
Member

@igor-dv igor-dv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've started to work on presets and created these initial PRs #4027 #4043 (and also presets-merge-babel-configs branch). Considering this (and if everybody agrees with the API), maybe we can wait with this PR? If it will be released in v4, we won't be able to deprecate it in the next release

} else {
try {
// eslint-disable-next-line import/no-dynamic-require,global-require
const jsConfig = require(path.resolve(babelConfigDir, 'babel.config.js'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to use serverRequire to support also babel.config.ts

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I think I'll just close this one in favor of yours

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool =) Would love to hear your thoughts there

@Hypnosphi Hypnosphi closed this Aug 27, 2018
@Hypnosphi Hypnosphi deleted the storybook-babel-config-js branch August 27, 2018 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants