mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 03:31:06 +08:00
FIX core-js alias
This commit is contained in:
parent
94ae833636
commit
aa84714966
@ -58,7 +58,7 @@ export default ({ configDir, configType, entries, outputDir, cache }) => {
|
|||||||
extensions: ['.mjs', '.js', '.jsx', '.json'],
|
extensions: ['.mjs', '.js', '.jsx', '.json'],
|
||||||
modules: ['node_modules'].concat(raw.NODE_PATH || []),
|
modules: ['node_modules'].concat(raw.NODE_PATH || []),
|
||||||
alias: {
|
alias: {
|
||||||
'core-js': require.resolve('core-js'),
|
'core-js': path.dirname(require.resolve('core-js/package.json')),
|
||||||
react: require.resolve('react'),
|
react: require.resolve('react'),
|
||||||
'react-dom': require.resolve('react-dom'),
|
'react-dom': require.resolve('react-dom'),
|
||||||
},
|
},
|
||||||
|
@ -83,7 +83,7 @@ export default ({
|
|||||||
modules: ['node_modules'].concat(raw.NODE_PATH || []),
|
modules: ['node_modules'].concat(raw.NODE_PATH || []),
|
||||||
mainFields: ['browser', 'main', 'module'],
|
mainFields: ['browser', 'main', 'module'],
|
||||||
alias: {
|
alias: {
|
||||||
'core-js': require.resolve('core-js'),
|
'core-js': path.dirname(require.resolve('core-js/package.json')),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user