-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Core: Disable CRA behaviors when preset detected #7696
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
Conversation
This pull request is automatically deployed with Now. |
@@ -27,7 +29,7 @@ export function managerWebpack(config: Configuration) { | |||
} | |||
|
|||
export function babelDefault(config: Configuration) { | |||
if (!isReactScriptsInstalled()) { | |||
if (!isReactScriptsInstalled() || !builtInPresetDisabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be || builtInPresetDisabled
?
f212bad
to
40d3cdf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Add to docs somewhere maybe?
40d3cdf
to
38c2259
Compare
5c1b1bf
to
918ab1f
Compare
918ab1f
to
6f8ef44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome. Great work!
6f8ef44
to
7276957
Compare
7276957
to
1050707
Compare
1050707
to
012d41c
Compare
012d41c
to
c9ca61f
Compare
c9ca61f
to
d377340
Compare
d377340
to
dedaa6d
Compare
Disable the built-in CRA preset for
@storybook/react
when the new preset is detected.Relates to storybookjs/presets#25.