site: fix config, ref: a73d0504

pull/7559/head
Benjy Cui 7 years ago
parent c2031f701c
commit eddd1db3e9

@ -63,10 +63,14 @@ module.exports = {
};
config.externals = {
react: 'React',
'react-dom': 'ReactDOM',
'react-router-dom': 'ReactRouterDOM',
};
if (isDev) {
Object.assign(config.externals, {
react: 'React',
'react-dom': 'ReactDOM',
});
}
config.babel.plugins.push([
require.resolve('babel-plugin-transform-runtime'),

Loading…
Cancel
Save