1
0
mirror of synced 2024-12-19 01:58:47 +03:00
vue-formulario/build/rollup.iife.config.js

35 lines
1021 B
JavaScript
Raw Normal View History

2020-10-11 18:12:00 +03:00
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'
2020-10-11 18:12:00 +03:00
import typescript from 'rollup-plugin-typescript2'
import vue from 'rollup-plugin-vue'
// noinspection JSUnusedGlobalSymbols
export default {
2020-10-11 18:12:00 +03:00
input: 'src/index.ts',
2020-10-09 22:58:28 +03:00
output: {
name: 'VueFormulario',
format: 'iife',
globals: {
'is-url': 'isUrl',
2020-10-11 18:12:00 +03:00
vue: 'Vue',
'vue-property-decorator': 'vuePropertyDecorator',
},
2020-10-09 22:58:28 +03:00
},
2020-10-18 20:20:54 +03:00
external: ['vue'],
2020-10-09 22:58:28 +03:00
plugins: [
resolve({
browser: true,
preferBuiltins: false,
2020-10-09 22:58:28 +03:00
}),
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(),
2021-11-11 16:09:00 +03:00
internal(['is-url', 'vue-property-decorator']),
terser(),
2020-10-09 22:58:28 +03:00
]
}