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',
|
|
|
|
format: 'iife',
|
|
|
|
globals: {
|
|
|
|
'is-url': 'isUrl',
|
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-18 20:20:54 +03:00
|
|
|
external: ['vue'],
|
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
|
|
|
}),
|
2021-05-25 21:37:42 +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']),
|
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
|
|
|
}
|