Skip to content

Commit 5067ccb

Browse files
committed
Update babel flags
1 parent 9f6e2d6 commit 5067ccb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": "https://github.com/rackt/react-router/issues",
1212
"scripts": {
1313
"build": "scripts/build.sh",
14-
"watch": "babel ./modules --watch -d build",
14+
"watch": "babel ./modules --watch -d build --optional es7.classProperties",
1515
"build-website": "babel-node website/scripts/build.js > website/index.html",
1616
"examples": "webpack-dev-server --config examples/webpack.config.js --content-base examples",
1717
"prepublish": "npm run build",

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build_dir=lib
66

77
rm -rf $build_dir
88

9-
$babel -d $build_dir ./modules
9+
$babel ./modules -d $build_dir --optional es7.classProperties
1010
find -X $build_dir -type d -name __tests__ | xargs rm -rf
1111
NODE_ENV=production $webpack modules/index.js $build_dir/umd/ReactRouter.js
1212
NODE_ENV=production COMPRESS=1 $webpack modules/index.js $build_dir/umd/ReactRouter.min.js

0 commit comments

Comments
 (0)