site: fix tnpm run deploy

This commit is contained in:
Benjy Cui 2017-09-25 10:39:45 +08:00
parent e672f41e1e
commit f433382180

View File

@ -74,7 +74,7 @@ module.exports = {
'create-react-class': 'preact-compat/lib/create-react-class',
'react-router': 'react-router',
});
} else {
} else if (isDev) {
config.externals = Object.assign({}, config.externals, {
react: 'React',
'react-dom': 'ReactDOM',