Skip to content

Commit d5b50a9

Browse files
committed
chore: use es2015 preset to compile the helper
1 parent 4699659 commit d5b50a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"url": "https://github.com/gajus/babel-plugin-react-css-modules"
4747
},
4848
"scripts": {
49-
"build-helper": "mkdir -p ./dist/browser && NODE_ENV=production babel ./src/getClassName.js --out-file ./dist/browser/getClassName.js --source-maps",
49+
"build-helper": "mkdir -p ./dist/browser && NODE_ENV=production babel ./src/getClassName.js --out-file ./dist/browser/getClassName.js --source-maps --no-babelrc --plugins transform-es2015-modules-commonjs,transform-flow-strip-types --presets es2015",
5050
"build": "rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --source-maps && npm run build-helper",
5151
"lint": "eslint ./src",
5252
"precommit": "npm run test",

0 commit comments

Comments
 (0)