Skip to content

Commit

Permalink
do not inline methods when building lib/, let babel copy the method j…
Browse files Browse the repository at this point in the history
…son files instead
  • Loading branch information
Connum committed Mar 20, 2019
1 parent f0ae32a commit ccc07b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"development": {
"presets": ["env"],
"plugins": [
"add-module-exports",
"inline-json-import"
"add-module-exports"
]
},
"production": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:watch": "npm test -- --watch",
"test:examples": "node examples/",
"lint": "eslint src test",
"build": "babel src --out-dir lib && npm run dist",
"build": "babel src --out-dir lib --copy-files && npm run dist",
"dist": "browserify -p [ browserify-banner --file build/dist-banner.txt ] lib/index.js > dist/pinyin2ipa.js --standalone pinyin2ipa && cross-env BABEL_ENV=production babel src --out-dir build/temp && browserify -p [ browserify-banner --file build/dist-banner.txt ] -g uglifyify build/temp/index.js > dist/pinyin2ipa.min.js --standalone pinyin2ipa && rimraf build/temp",
"prepublishOnly": "npm run clean && npm run lint && npm run test && npm run build"
},
Expand Down

0 comments on commit ccc07b9

Please sign in to comment.