Skip to content

Commit

Permalink
small amendment to the exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Vorster committed Mar 20, 2017
1 parent 562ed2c commit c7b584f
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@ module.exports = [
library: 'storm-react-diagrams'
},
externals: {
"react-dom": "ReactDOM",
"react": 'React',
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
},
"lodash": {
commonjs: 'lodash',
commonjs2: 'lodash',
Expand Down Expand Up @@ -55,15 +65,25 @@ module.exports = [
library: 'storm-react-diagrams'
},
externals: {
"react-dom": "ReactDOM",
"react": 'React',
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
},
"lodash": {
commonjs: 'lodash',
commonjs2: 'lodash',
amd: '_',
root: '_'
}
},
},
module: {
rules: [
{
Expand Down

0 comments on commit c7b584f

Please sign in to comment.