Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
623e1bd1
Commit
623e1bd1
authored
8 years ago
by
Luigi Maselli
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add React Native Web support (#407)
parent
8ae36c6e
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/webpack.config.dev.js
+2
-1
config/webpack.config.dev.js
config/webpack.config.prod.js
+2
-1
config/webpack.config.prod.js
with
4 additions
and
2 deletions
+4
-2
config/webpack.config.dev.js
+
2
-
1
View file @
623e1bd1
...
@@ -76,7 +76,8 @@ module.exports = {
...
@@ -76,7 +76,8 @@ module.exports = {
// if we don't have a good solution, we should just make `babel-runtime`
// if we don't have a good solution, we should just make `babel-runtime`
// a dependency in generated projects.
// a dependency in generated projects.
// See https://github.com/facebookincubator/create-react-app/issues/255
// See https://github.com/facebookincubator/create-react-app/issues/255
'
babel-runtime/regenerator
'
:
require
.
resolve
(
'
babel-runtime/regenerator
'
)
'
babel-runtime/regenerator
'
:
require
.
resolve
(
'
babel-runtime/regenerator
'
),
'
react-native
'
:
'
react-native-web
'
}
}
},
},
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the
...
...
This diff is collapsed.
Click to expand it.
config/webpack.config.prod.js
+
2
-
1
View file @
623e1bd1
...
@@ -71,7 +71,8 @@ module.exports = {
...
@@ -71,7 +71,8 @@ module.exports = {
// if we don't have a good solution, we should just make `babel-runtime`
// if we don't have a good solution, we should just make `babel-runtime`
// a dependency in generated projects.
// a dependency in generated projects.
// See https://github.com/facebookincubator/create-react-app/issues/255
// See https://github.com/facebookincubator/create-react-app/issues/255
'
babel-runtime/regenerator
'
:
require
.
resolve
(
'
babel-runtime/regenerator
'
)
'
babel-runtime/regenerator
'
:
require
.
resolve
(
'
babel-runtime/regenerator
'
),
'
react-native
'
:
'
react-native-web
'
}
}
},
},
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets