Skip to content

Commit

Permalink
fix: transpile browser dist to ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed May 15, 2019
1 parent 43b762d commit 1f81eea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@
}
}]
]
}
},
"browser": {
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"corejs": { "version": 2 }
}
]
]
},
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"typings": "types/consola.d.ts",
"scripts": {
"build": "rm -rf dist && yarn build:node && yarn build:browser",
"build:node": "bili src/node.js --file-name consola.js --format cjs --bundle-node-modules --minify --no-map",
"build:browser": "bili src/browser.js --file-name consola.browser.js --format umd --module-name consola --bundle-node-modules --minify --no-map",
"build:node": "NODE_ENV=node bili src/node.js --file-name consola.js --format cjs --bundle-node-modules --minify --no-map",
"build:browser": "NODE_ENV=browser bili src/browser.js --file-name consola.browser.js --format umd --module-name consola --bundle-node-modules --minify --no-map",
"demo": "node demo",
"browser": "serve",
"test": "yarn lint && yarn test:types && yarn build && jest test",
Expand Down

0 comments on commit 1f81eea

Please sign in to comment.