Skip to content

Commit

Permalink
Force use of the transpiled ES5 version of preact-compat, as UglifyJS…
Browse files Browse the repository at this point in the history
… can't handle the ES module build

Fixes #244
  • Loading branch information
insin committed Jan 25, 2017
1 parent b038f2a commit 658e8f4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
**Fixed:**

- Use the transpiled ES5 version of `preact-compat`, as UglifyJS can't handle the ES `module` build [[#244](https://github.com/insin/nwb/issues/244)]

# 0.15.1 / 2017-01-25

**Removed:**
Expand Down
4 changes: 2 additions & 2 deletions src/commands/build-preact-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function buildConfig(args) {
},
resolve: {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat',
'react': 'preact-compat/dist/preact-compat',
'react-dom': 'preact-compat/dist/preact-compat',
}
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/build-preact.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function buildConfig(args) {
},
resolve: {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat',
'react': 'preact-compat/dist/preact-compat',
'react-dom': 'preact-compat/dist/preact-compat',
}
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/build-react-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ function buildConfig(args) {
else if (args.preact) {
config.resolve = {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat',
'react': 'preact-compat/dist/preact-compat',
'react-dom': 'preact-compat/dist/preact-compat',
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/serve-preact.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function buildConfig(args) {
},
resolve: {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat',
'react': 'preact-compat/dist/preact-compat',
'react-dom': 'preact-compat/dist/preact-compat',
}
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/createServePreactAppConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default function createServePreactAppConfig(args, overrides) {
},
resolve: {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat',
'react': 'preact-compat/dist/preact-compat',
'react-dom': 'preact-compat/dist/preact-compat',
}
},
}
Expand Down

0 comments on commit 658e8f4

Please # to comment.