Skip to content

Commit 829eddb

Browse files
authored
Merge pull request botpress#78 from Joepena/master
Exclude react from the bundle by default
2 parents e0ae50a + 72c819e commit 829eddb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webpack.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ var webConfig = {
1313
publicPath: '/js/',
1414
filename: 'web.bundle.js'
1515
},
16+
externals: {
17+
'react': 'react',
18+
'react-dom': 'reactDOM'
19+
},
1620
resolve: {
1721
extensions: ['', '.js', '.jsx', '.css'],
1822
alias: {

0 commit comments

Comments
 (0)