-
-
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
Core-webpack: Factor out webpack dependencies #18114
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 6e10a3d. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
lib/webpack-tools/README.md
Outdated
@@ -0,0 +1,9 @@ | |||
# Storybook Core-Common |
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.
FIXME
* Modify or return a custom Webpack config after the Storybook's default configuration | ||
* has run (mostly used by addons). | ||
*/ | ||
webpack?: (config: Configuration, options: Options) => Configuration | Promise<Configuration>; |
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.
FIXME: this should come from core-webpack
lib/webpack-tools/src/types.ts
Outdated
|
||
export type { Options, Preset, BuilderResult, TypescriptOptions } from '@storybook/core-common'; | ||
|
||
export interface CommonWebpackConfiguration { |
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.
FIXME comment: this is the bare minimum type that our common code expects all versions of webpack to implement. in the future we can update this as needed, but we will also need to update the utility code.
Issue: N/A
Telescoping PR, builds on #18018
What I did
core-common
core-webpack
that handles common webpack types & utilitiesHow to test