Skip to content

Commit

Permalink
build(babel): add
Browse files Browse the repository at this point in the history
  • Loading branch information
marsprince committed Jun 24, 2020
1 parent 75a5776 commit 4cd2dce
Show file tree
Hide file tree
Showing 3 changed files with 579 additions and 358 deletions.
12 changes: 7 additions & 5 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module.exports = {
const babelConfigure = require('@razors/build-babel')
const config = babelConfigure({ lib: 'vue' }, {
"presets": [
["@vue/babel-preset-app", {useBuiltIns: false}],
["@vue/babel-preset-jsx", {
"injectH": false
}]]
}
"injectH": false
}]]
})

module.exports = config
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
"commit": "git add . && git-cz"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@razors/build-babel": "^0.0.4",
"@rollup/plugin-babel": "^5.0.0",
"@rollup/plugin-commonjs": "^12.0.0",
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
"@vue/babel-preset-app": "^4.3.1",
"@vue/babel-preset-jsx": "^1.1.2",
"babel-loader": "^8.1.0",
"commitizen": "^4.1.2",
"css-loader": "^3.5.2",
Expand All @@ -34,8 +31,6 @@
"npm-run-all": "^4.1.5",
"rollup": "^2.7.2",
"rollup-plugin-typescript2": "^0.27.0",
"slate": "*",
"slate-vue": "*",
"style-loader": "^1.1.4",
"ts-loader": "^6.2.2",
"typescript": "^3.8.3",
Expand Down
Loading

0 comments on commit 4cd2dce

Please sign in to comment.