2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-12 19:32:26 +03:00

build: preset-jsx

This commit is contained in:
mengxiong10
2019-11-18 21:10:15 +08:00
parent 32c74a4fcf
commit cdb45bd328
5 changed files with 131 additions and 51 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ module.exports = api => {
api.cache(false);
return {
presets: [
['@vue/babel-preset-jsx'],
[
'@babel/preset-env',
{
@@ -10,10 +11,11 @@ module.exports = api => {
},
],
],
plugins: ['transform-vue-jsx', '@babel/plugin-transform-object-assign'],
plugins: ['@babel/plugin-transform-object-assign'],
env: {
test: {
presets: [
['@vue/babel-preset-jsx'],
[
'@babel/preset-env',
{
@@ -23,7 +25,6 @@ module.exports = api => {
},
],
],
plugins: ['transform-vue-jsx'],
},
},
};