1
0
mirror of synced 2024-11-23 22:06:07 +03:00
vue-formulario/build/rollup.config.js
2023-12-28 12:48:51 +04:00

28 lines
819 B
JavaScript

import alias from '@rollup/plugin-alias'
import autoExternal from 'rollup-plugin-auto-external'
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',
vue: 'Vue',
'vue-property-decorator': 'vuePropertyDecorator',
},
sourcemap: false,
}],
external: ['vue', 'vue-property-decorator'],
plugins: [
typescript({ sourceMap: false }),
vue({ css: true, compileTemplate: true }),
alias({ entries: [{ find: /^@\/(.+)/, replacement: './$1' }] }),
commonjs(),
autoExternal(),
]
}