-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Storybook: Remove unnecessary feature flags #67576
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
@@ -60,11 +60,6 @@ module.exports = { | |||
name: '@storybook/react-webpack5', | |||
options: {}, | |||
}, | |||
features: { | |||
babelModeV7: true, |
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.
Babel mode is the default since v7, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#babel-mode-v7-exclusively
@@ -60,11 +60,6 @@ module.exports = { | |||
name: '@storybook/react-webpack5', | |||
options: {}, | |||
}, | |||
features: { | |||
babelModeV7: true, | |||
emotionAlias: false, |
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.
We're using Emotion 11 so this is not necessary, and the flag was removed anyway, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#70-feature-flags-removed
features: { | ||
babelModeV7: true, | ||
emotionAlias: false, | ||
storyStoreV7: true, |
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.
Unnecessary, since it's enabled by default since Storybook v7, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#storystorev7-enabled-by-default
Size Change: 0 B Total Size: 1.83 MB ℹ️ View Unchanged
|
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
Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
What?
In preparation for upgrading Storybook to v8, this PR cleans up unnecessary feature flags.
See inline comments for more details.
Part of #67574.
Why?
These feature flags are no longer necessary.
Some of those flags throw errors in v8.
How?
Removing the unnecessary feature flags.
Testing Instructions
Verify Storybook builds correctly with no errors and there are no visual or behavioral differences.
Testing Instructions for Keyboard
Same
Screenshots or screencast
None