-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update storybook to use production babel config (#2608)
* Update storybook to use production babel config Previously we used "not-production" because I thought the babel-plugin-transform-react-constant-elements plugin messed things up, but it turns out it was my complicated codeInvoker stuff in the readme loader. This helps prove that said plugin isn't messing up our builds. This removes the envName config (as webpack will set it to "production" in production mode automatically, and removes the minified option, as webpack uses Terser in production mode to minify everything anyway so we don't need Babel doing it too. The readme loader now requires a manual list of polaris imports that should be available (just like icons). Eventually it'd be good if READMEs could have some metadata specifying their what imports they require instead of us importing everything every time, but that's a plan for later.
- Loading branch information
Showing
2 changed files
with
106 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters