Skip to content

Commit

Permalink
Merge pull request #27 from wordpress-mobile/feature/auto-import-react
Browse files Browse the repository at this point in the history
Auto import React, don't import it in GB code
  • Loading branch information
maxme authored Mar 30, 2018
2 parents 2a6b6f3 + 0430430 commit 1b711ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"babel-preset-react-native-stage-0/decorator-support"
],
"plugins": [
"react-require",
[
"module-resolver",
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"devDependencies": {
"@wordpress/babel-preset-default": "^1.1.2",
"babel-plugin-react-require": "^3.0.0",
"babel-plugin-transform-async-generator-functions": "^6.24.1",
"babel-preset-react-native-stage-0": "^1.0.1",
"cross-env": "^5.1.4",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ babel-plugin-module-resolver@^3.1.0:
reselect "^3.0.1"
resolve "^1.4.0"

babel-plugin-react-require@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/babel-plugin-react-require/-/babel-plugin-react-require-3.0.0.tgz#2e4e7b4496b93a654a1c80042276de4e4eeb20e3"

babel-plugin-react-transform@2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/babel-plugin-react-transform/-/babel-plugin-react-transform-2.0.2.tgz#515bbfa996893981142d90b1f9b1635de2995109"
Expand Down

0 comments on commit 1b711ca

Please sign in to comment.