Skip to content

Commit 119e68e

Browse files
author
Amir Tocker
committed
Add babelify and browserify.
1 parent a6d0e62 commit 119e68e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"presets": ["react","es2015", "stage-1"],
3-
"ignore": [ "src/**/*compiled.js*"]
3+
"plugins": ["transform-es2015-modules-umd"],
4+
"ignore": [ "**/*compiled.js*"]
45
}

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@
2424
"babel-cli": "^6.14.0",
2525
"babel-core": "^6.14.0",
2626
"babel-loader": "^6.2.5",
27+
"babel-plugin-transform-es2015-modules-umd": "^6.12.0",
2728
"babel-plugin-transform-object-rest-spread": "^6.8.0",
2829
"babel-preset-es2015": "^6.14.0",
2930
"babel-preset-react": "^6.11.1",
3031
"babel-preset-stage-1": "^6.13.0",
32+
"babelify": "^7.3.0",
33+
"browserify": "^13.1.0",
34+
"browserify-shim": "^3.8.12",
3135
"chai": "^3.5.0",
3236
"enzyme": "^2.4.1",
3337
"mocha": "^3.0.2",
@@ -45,5 +49,16 @@
4549
"es2015",
4650
"stage-1"
4751
]
52+
},
53+
"browserify-shim": {
54+
"cloudinary-core": "cloudinary",
55+
"react": "React",
56+
"lodash": "_"
57+
},
58+
"browserify": {
59+
"transform": [
60+
["browserify-shim"]
61+
],
62+
"standalone": "cloudinaryReact"
4863
}
4964
}

0 commit comments

Comments
 (0)