Skip to content

Commit

Permalink
fix(lib): import/export not getting transpiled in lib dir (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored and eddywashere committed Apr 3, 2017
1 parent af3ccbe commit 2e2a5da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"transform-object-rest-spread"
],
"env": {
"dist-dir": {
"plugins": ["transform-es2015-modules-commonjs"]
},
"webpack": {
"plugins": ["transform-es2015-modules-commonjs"]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"start": "BABEL_ENV=webpack webpack-dev-server --config ./webpack.dev.config.js --watch",
"build-docs": "cross-env WEBPACK_BUILD=production webpack --config ./webpack.dev.config.js --progress --colors",
"build": "cross-env NODE_ENV=production rollup -c",
"prebuild": "babel src --out-dir lib --ignore src/__tests__/",
"prebuild": "BABEL_ENV=dist-dir babel src --out-dir lib --ignore src/__tests__/",
"create-release": "npm test && sh ./scripts/release",
"publish-release": "npm test && sh ./scripts/publish",
"lint": "eslint src"
Expand Down

0 comments on commit 2e2a5da

Please sign in to comment.