Skip to content

Commit

Permalink
add preact-compat aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris committed Dec 18, 2016
1 parent 7eb4871 commit ecfac23
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ module.exports = {
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web'
'react-native': 'react-native-web',
// Preact-compat aliases
'react': 'preact-compat',
'react-dom': 'preact-compat',
}
},
// @remove-on-eject-begin
Expand Down
5 changes: 4 additions & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ module.exports = {
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web'
'react-native': 'react-native-web',
// Preact-compat aliases
'react': 'preact-compat',
'react-dom': 'preact-compat',
}
},
// @remove-on-eject-begin
Expand Down
2 changes: 1 addition & 1 deletion packages/react-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@just-boris/preact-scripts",
"version": "0.8.4",
"version": "0.8.4-1",
"description": "Configuration and scripts for Create React App.",
"repository": "facebookincubator/create-react-app",
"license": "BSD-3-Clause",
Expand Down

0 comments on commit ecfac23

Please sign in to comment.