Merge pull request #17946 from storybookjs/fix-17926-react-dom-client-windows-issue

fix: Support react-dom/client dom hack on Windows machines
This commit is contained in:
Norbert de Langen 2022-04-13 14:07:32 +02:00 committed by GitHub
commit 80df766292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ export async function webpackFinal(config: Configuration) {
? null
: new IgnorePlugin({
resourceRegExp: /react-dom\/client$/,
contextRegExp: /(app\/react|@storybook\/react)/, // TODO this needs to work for both in our MONOREPO and in the user's NODE_MODULES
contextRegExp: /(app\/react|app\\react|@storybook\/react|@storybook\\react)/, // TODO this needs to work for both in our MONOREPO and in the user's NODE_MODULES
}),
].filter(Boolean),
};