mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
Fix PR comments
This commit is contained in:
parent
1933de7b80
commit
038ccd0223
@ -17,12 +17,11 @@ export function webpackFinal(config: Configuration) {
|
||||
...config,
|
||||
resolve: {
|
||||
...config.resolve,
|
||||
modules: [path.resolve('node_modules'), ...config.resolve.modules],
|
||||
alias: {
|
||||
...config.resolve.alias,
|
||||
react: require.resolve('preact/compat'),
|
||||
'react-dom/test-utils': require.resolve('preact/test-utils'),
|
||||
'react-dom': require.resolve('preact/compat'),
|
||||
react: path.dirname(require.resolve('preact/compat/package.json')),
|
||||
'react-dom/test-utils': path.dirname(require.resolve('preact/test-utils/package.json')),
|
||||
'react-dom': path.dirname(require.resolve('preact/compat/package.json')),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user