2020-10-11 18:12:00 +03:00
|
|
|
import alias from '@rollup/plugin-alias'
|
|
|
|
import commonjs from '@rollup/plugin-commonjs'
|
2020-02-28 18:46:08 +03:00
|
|
|
import internal from 'rollup-plugin-internal'
|
2020-10-11 11:41:32 +03:00
|
|
|
import resolve from '@rollup/plugin-node-resolve'
|
2020-02-28 18:46:08 +03:00
|
|
|
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'
|
2020-02-28 18:46:08 +03:00
|
|
|
|
2020-10-11 11:41:32 +03:00
|
|
|
// noinspection JSUnusedGlobalSymbols
|
2020-02-28 18:46:08 +03:00
|
|
|
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',
|
2020-10-11 11:41:32 +03:00
|
|
|
'nanoid/non-secure': 'nanoid',
|
2020-10-11 18:12:00 +03:00
|
|
|
vue: 'Vue',
|
|
|
|
'vue-property-decorator': 'vuePropertyDecorator',
|
2020-10-11 11:41:32 +03:00
|
|
|
},
|
2020-10-09 22:58:28 +03:00
|
|
|
},
|
2020-10-11 18:12:00 +03:00
|
|
|
external: ['vue', 'vue-property-decorator'],
|
2020-10-09 22:58:28 +03:00
|
|
|
plugins: [
|
|
|
|
resolve({
|
|
|
|
browser: true,
|
2020-10-11 11:41:32 +03:00
|
|
|
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(),
|
|
|
|
internal(['is-plain-object', 'nanoid/non-secure', 'is-url']),
|
2020-10-11 11:41:32 +03:00
|
|
|
terser(),
|
2020-10-09 22:58:28 +03:00
|
|
|
]
|
2020-02-28 18:46:08 +03:00
|
|
|
}
|