mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-05-26 09:54:07 +03:00
31 lines
616 B
JavaScript
31 lines
616 B
JavaScript
// need to compile node_modules (eg: vue-runtime-helps)
|
|
module.exports = api => {
|
|
api.cache(false);
|
|
return {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: false,
|
|
},
|
|
],
|
|
],
|
|
plugins: ['transform-vue-jsx', '@babel/plugin-transform-object-assign'],
|
|
env: {
|
|
test: {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
targets: {
|
|
node: 'current',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
plugins: ['transform-vue-jsx'],
|
|
},
|
|
},
|
|
};
|
|
};
|