Skip to content

Commit 6c785d1

Browse files
committed
Fixed webpack excluding react[D
1 parent c134bc9 commit 6c785d1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "botpress",
33
"description": "The world's first CMS for bots. Easily create, manage and extend chatbots.",
4-
"version": "0.0.49",
4+
"version": "0.0.50",
55
"author": "Botpress",
66
"babel": {
77
"presets": [

src/cli/templates/create/webpack.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ var webConfig = {
4444
resolve: {
4545
extensions: ['', '.js', '.jsx']
4646
},
47+
externals: {
48+
'react': 'react',
49+
'react-dom': 'reactDOM'
50+
},
4751
module: {
4852
loaders: [{
4953
test: /\.jsx?$/,

webpack.js

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

0 commit comments

Comments
 (0)