Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 9ce6c2c

Browse files
committed
Use another transform to fix prod builds in browser
1 parent af30e8f commit 9ce6c2c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test": "jest",
1515
"lint": "eslint .",
1616
"format": "eslint . --fix",
17-
"build": "babel --no-babelrc --plugins=transform-es2015-modules-commonjs,transform-react-jsx,transform-class-properties,transform-object-rest-spread,transform-flow-strip-types src --copy-files --out-dir dist --ignore '**/__tests__/**'",
17+
"build": "babel --no-babelrc --plugins=transform-es2015-block-scoping,transform-es2015-modules-commonjs,transform-react-jsx,transform-class-properties,transform-object-rest-spread,transform-flow-strip-types src --copy-files --out-dir dist --ignore '**/__tests__/**'",
1818
"prepare": "yarn build",
1919
"release": "release-it"
2020
},
@@ -49,6 +49,7 @@
4949
"babel-cli": "^6.26.0",
5050
"babel-jest": "^22.4.1",
5151
"babel-plugin-transform-class-properties": "^6.13.0",
52+
"babel-plugin-transform-es2015-block-scoping": "^6.26.0",
5253
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
5354
"babel-plugin-transform-flow-strip-types": "^6.22.0",
5455
"babel-plugin-transform-object-rest-spread": "^6.13.0",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ babel-plugin-transform-es2015-block-scoped-functions@^6.22.0, babel-plugin-trans
13481348
dependencies:
13491349
babel-runtime "^6.22.0"
13501350

1351-
babel-plugin-transform-es2015-block-scoping@^6.23.0, babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es2015-block-scoping@^6.8.0:
1351+
babel-plugin-transform-es2015-block-scoping@^6.23.0, babel-plugin-transform-es2015-block-scoping@^6.26.0, babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es2015-block-scoping@^6.8.0:
13521352
version "6.26.0"
13531353
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f"
13541354
integrity sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=

0 commit comments

Comments
 (0)