mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-22 05:02:18 +08:00
Instead we pass the FS location of the react[-dom] version that @storybook/ui wants to use into the manager webpack config directly.
9 lines
354 B
JavaScript
9 lines
354 B
JavaScript
const { dirname } = require('path');
|
|
|
|
// These paths need to be aliased in the manager webpack config to ensure that all
|
|
// code running inside the manager uses the *same* version of react[-dom] that we use.
|
|
module.exports = {
|
|
react: dirname(require.resolve('react/package.json')),
|
|
'react-dom': dirname(require.resolve('react-dom/package.json')),
|
|
};
|