Skip to content

Commit

Permalink
Add browserify transform (#9642)
Browse files Browse the repository at this point in the history
* Add loose-envify browserify transform

* Add transform to react-addons-create-fragment
  • Loading branch information
mridgway authored and gaearon committed May 9, 2017
1 parent 4f7136e commit 2bbe024
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions addons/create-react-class/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"homepage": "https://facebook.github.io/react/",
"dependencies": {
"fbjs": "^0.8.9",
"loose-envify": "^1.3.1",
"object-assign": "^4.1.1"
},
"scripts": {
Expand All @@ -32,5 +33,10 @@
"react": "^15.5.0",
"react-addons-test-utils": "^15.5.0",
"react-dom": "^15.5.0"
},
"browserify": {
"transform": [
"loose-envify"
]
}
}
4 changes: 2 additions & 2 deletions addons/create-react-class/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,9 @@ longest@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"

loose-envify@^1.0.0, loose-envify@^1.1.0:
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848"
resolved "https://artifacts.netflix.com/api/npm/npm-netflix/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848"
dependencies:
js-tokens "^3.0.0"

Expand Down
6 changes: 6 additions & 0 deletions addons/react-addons-create-fragment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"license": "BSD-3-Clause",
"dependencies": {
"fbjs": "^0.8.4",
"loose-envify": "^1.3.1",
"object-assign": "^4.1.0"
},
"files": [
Expand All @@ -27,5 +28,10 @@
"jest": "^19.0.2",
"react": "^15.4.2",
"react-dom": "^15.4.2"
},
"browserify": {
"transform": [
"loose-envify"
]
}
}
4 changes: 2 additions & 2 deletions addons/react-addons-create-fragment/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,9 @@ longest@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"

loose-envify@^1.0.0, loose-envify@^1.1.0:
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848"
resolved "https://artifacts.netflix.com/api/npm/npm-netflix/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848"
dependencies:
js-tokens "^3.0.0"

Expand Down

0 comments on commit 2bbe024

Please sign in to comment.