Skip to content

Commit

Permalink
Merge pull request #24784 from storybookjs/valentin/hide-critical-req…
Browse files Browse the repository at this point in the history
…uire-message

Webpack5: Hide critical dependency warning
  • Loading branch information
valentinpalkovic authored Nov 9, 2023
2 parents 992a820 + 9da858e commit db46037
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ export default async (
shouldCheckTs ? new ForkTsCheckerWebpackPlugin(tsCheckOptions) : null,
].filter(Boolean),
module: {
// Disable warning for dynamic requires
unknownContextCritical: false,
rules: [
{
test: /\.stories\.([tj])sx?$|(stories|story)\.mdx$/,
Expand Down

0 comments on commit db46037

Please sign in to comment.