1
0
mirror of synced 2024-11-22 21:36:04 +03:00
vue-formulario/build/rollup.iife.config.js

38 lines
1.2 KiB
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',
exports: 'default',
format: 'iife',
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',
},
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
}),
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(),
2020-10-18 20:20:54 +03:00
internal(['is-plain-object', 'nanoid/non-secure', 'is-url', 'vue-property-decorator']),
terser(),
2020-10-09 22:58:28 +03:00
]
}