1
0
mirror of synced 2024-12-01 01:26:09 +03:00
vue-formulario/build/rollup.config.js

33 lines
1.0 KiB
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 { terser } from 'rollup-plugin-terser'
2020-10-11 18:12:00 +03:00
import typescript from 'rollup-plugin-typescript2'
import vue from 'rollup-plugin-vue'
// noinspection JSUnusedGlobalSymbols
export default {
input: 'src/index.ts',
output: [{
name: 'Formulario',
exports: 'default',
globals: {
'is-plain-object': 'isPlainObject',
'is-url': 'isUrl',
'nanoid/non-secure': 'nanoid',
2020-10-11 18:12:00 +03:00
vue: 'Vue',
'vue-property-decorator': 'vuePropertyDecorator',
},
sourcemap: false,
}],
2020-10-11 18:12:00 +03:00
external: ['nanoid/non-secure', 'vue', 'vue-property-decorator'],
2020-10-09 22:58:28 +03:00
plugins: [
2020-10-11 18:12:00 +03:00
typescript({ check: false, sourceMap: false }),
vue({ css: true, compileTemplate: true }),
alias({ entries: [{ find: /^@\/(.+)/, replacement: './$1' }] }),
2020-10-09 22:58:28 +03:00
commonjs(),
autoExternal(),
terser(),
2020-10-09 22:58:28 +03:00
]
}