1
0
mirror of synced 2024-11-28 00:06:01 +03:00
vue-formulario/build/rollup.config.js

28 lines
819 B
JavaScript
Raw Normal View History

2020-10-11 18:12:00 +03:00
import alias from '@rollup/plugin-alias'
import autoExternal from 'rollup-plugin-auto-external'
2020-10-11 18:12:00 +03:00
import commonjs from '@rollup/plugin-commonjs'
import typescript from 'rollup-plugin-typescript2'
import vue from 'rollup-plugin-vue'
// noinspection JSUnusedGlobalSymbols
export default {
input: 'src/index.ts',
output: [{
name: 'Formulario',
globals: {
'is-url': 'isUrl',
2020-10-11 18:12:00 +03:00
vue: 'Vue',
'vue-property-decorator': 'vuePropertyDecorator',
},
sourcemap: false,
}],
2021-06-13 00:15:07 +03:00
external: ['vue', 'vue-property-decorator'],
2020-10-09 22:58:28 +03:00
plugins: [
typescript({ sourceMap: false }),
2020-10-11 18:12:00 +03:00
vue({ css: true, compileTemplate: true }),
alias({ entries: [{ find: /^@\/(.+)/, replacement: './$1' }] }),
2020-10-09 22:58:28 +03:00
commonjs(),
autoExternal(),
]
}