Skip to content

Commit

Permalink
Set up externals
Browse files Browse the repository at this point in the history
  • Loading branch information
janeksmielowski committed Dec 13, 2020
1 parent eb892cc commit a555f22
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ module.exports = function(env, argv) {
}
]
},
externals: {
'react': 'react',
'react-dom': 'react-dom'
},
resolve: {
alias: {
'@root': path.resolve(__dirname, 'src'),
'react': path.resolve(__dirname, 'node_modules/react'),
'@root': path.resolve(__dirname, 'src')
},
extensions: ['.js', '.jsx', '.ts', '.tsx']
},
Expand Down

0 comments on commit a555f22

Please sign in to comment.