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

Core-webpack: Factor out webpack dependencies #18114

Merged
merged 13 commits into from
Jun 6, 2022
Merged

Conversation

shilman
Copy link
Member

@shilman shilman commented May 2, 2022

Issue: N/A

Telescoping PR, builds on #18018

What I did

  • Removed webpack dependencies from core-common
  • Introduced a new package core-webpack that handles common webpack types & utilities
  • Refactored up the stack

How to test

  • CI passes

@nx-cloud
Copy link

nx-cloud bot commented May 2, 2022

☁️ Nx Cloud Report

CI 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 target

Sent with 💌 from NxCloud.

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2022

Fails
🚫 PR is marked with "BREAKING CHANGE" label.

Generated by 🚫 dangerJS against 6e10a3d

@shilman shilman changed the title Webpack-tools: Factor out webpack dependencies Webpack-tools: Factor out webpack dependencies (5/N) May 4, 2022
Base automatically changed from future/minimize-webpack-deps to future/add-frameworks May 11, 2022 12:07
@@ -0,0 +1,9 @@
# Storybook Core-Common
Copy link
Member Author

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>;
Copy link
Member Author

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


export type { Options, Preset, BuilderResult, TypescriptOptions } from '@storybook/core-common';

export interface CommonWebpackConfiguration {
Copy link
Member Author

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.

@shilman shilman changed the title Webpack-tools: Factor out webpack dependencies (5/N) Webpack-tools: Factor out webpack dependencies (3/N) May 11, 2022
@shilman shilman changed the title Webpack-tools: Factor out webpack dependencies (3/N) Core-webpack: Factor out webpack dependencies (3/N) May 21, 2022
@shilman shilman changed the title Core-webpack: Factor out webpack dependencies (3/N) Core-webpack: Factor out webpack dependencies Jun 6, 2022
Base automatically changed from future/add-frameworks to future/base June 6, 2022 16:18
@shilman shilman marked this pull request as ready for review June 6, 2022 16:18
@shilman shilman merged commit c6fd95a into future/base Jun 6, 2022
@shilman shilman deleted the future/webpack-tools branch June 6, 2022 16:18
@shilman shilman removed the maintenance User-facing maintenance tasks label Jun 6, 2022
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.

1 participant