Permalink
Browse files

Close #1687, Replace es3ify with Babel ES3 transforms (#1688)

  • Loading branch information...
1 parent e64573e commit 0e80e7a61489cbf5b746c922d6f3b98fa3ea711a @chentsulin chentsulin committed with gaearon May 2, 2016
Showing with 6 additions and 28 deletions.
  1. +3 −1 .babelrc
  2. +0 −25 build/es3ify.js
  3. +3 −2 package.json
View
@@ -17,7 +17,9 @@
"transform-es2015-parameters",
["transform-es2015-destructuring", { "loose": true }],
"transform-es2015-block-scoping",
- "transform-object-rest-spread"
+ "transform-object-rest-spread",
+ "transform-es3-member-expression-literals",
+ "transform-es3-property-literals"
],
"env": {
"commonjs": {
View
@@ -1,25 +0,0 @@
-var glob = require('glob')
-var fs = require('fs')
-var es3ify = require('es3ify')
-
-glob('./@(lib|dist|es)/**/*.js', function (err, files) {
- if (err) {
- throw err
- }
-
- files.forEach(function (file) {
- fs.readFile(file, 'utf8', function (err, data) {
- if (err) {
- throw err
- }
-
- fs.writeFile(file, es3ify.transform(data), function (err) {
- if (err) {
- throw err
- }
-
- console.log('es3ified ' + file) // eslint-disable-line no-console
- })
- })
- })
-})
View
@@ -26,7 +26,7 @@
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack src/index.js dist/redux.js",
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack src/index.js dist/redux.min.js",
"build:examples": "cross-env BABEL_ENV=commonjs babel-node examples/buildAll.js",
- "build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min && node ./build/es3ify",
+ "build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
"prepublish": "npm run clean && npm run check:src && npm run build",
"docs:clean": "rimraf _book",
"docs:prepare": "gitbook install",
@@ -89,10 +89,11 @@
"babel-plugin-transform-es2015-sticky-regex": "^6.3.13",
"babel-plugin-transform-es2015-template-literals": "^6.3.13",
"babel-plugin-transform-es2015-unicode-regex": "^6.3.13",
+ "babel-plugin-transform-es3-member-expression-literals": "^6.5.0",
+ "babel-plugin-transform-es3-property-literals": "^6.5.0",
"babel-plugin-transform-object-rest-spread": "^6.3.13",
"babel-register": "^6.3.13",
"cross-env": "^1.0.7",
- "es3ify": "^0.2.0",
"eslint": "^1.10.3",
"eslint-config-rackt": "^1.1.1",
"eslint-plugin-react": "^3.16.1",

0 comments on commit 0e80e7a

Please sign in to comment.