mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
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')),
|
||
|
};
|