1
0
mirror of synced 2024-12-18 17:48:48 +03:00
vue-formulario/build/rollup.iife.config.js
2023-12-28 12:48:51 +04:00

35 lines
1021 B
JavaScript

import alias from '@rollup/plugin-alias'
import commonjs from '@rollup/plugin-commonjs'
import internal from 'rollup-plugin-internal'
import resolve from '@rollup/plugin-node-resolve'
import { terser } from 'rollup-plugin-terser'
import typescript from 'rollup-plugin-typescript2'
import vue from 'rollup-plugin-vue'
// noinspection JSUnusedGlobalSymbols
export default {
input: 'src/index.ts',
output: {
name: 'VueFormulario',
format: 'iife',
globals: {
'is-url': 'isUrl',
vue: 'Vue',
'vue-property-decorator': 'vuePropertyDecorator',
},
},
external: ['vue'],
plugins: [
resolve({
browser: true,
preferBuiltins: false,
}),
typescript({ sourceMap: false }),
vue({ css: true, compileTemplate: true }),
alias({ entries: [{ find: /^@\/(.+)/, replacement: './$1' }] }),
commonjs(),
internal(['is-url', 'vue-property-decorator']),
terser(),
]
}