2020-10-11 18:12:00 +03:00
|
|
|
import alias from '@rollup/plugin-alias'
|
2020-02-28 18:46:08 +03:00
|
|
|
import autoExternal from 'rollup-plugin-auto-external'
|
2020-10-11 18:12:00 +03:00
|
|
|
import commonjs from '@rollup/plugin-commonjs'
|
|
|
|
import typescript from 'rollup-plugin-typescript2'
|
2020-10-11 11:41:32 +03:00
|
|
|
import vue from 'rollup-plugin-vue'
|
2019-10-07 17:24:30 +03:00
|
|
|
|
2020-10-11 11:41:32 +03:00
|
|
|
// noinspection JSUnusedGlobalSymbols
|
2019-10-07 17:24:30 +03:00
|
|
|
export default {
|
2020-10-11 11:41:32 +03:00
|
|
|
input: 'src/index.ts',
|
|
|
|
output: [{
|
|
|
|
name: 'Formulario',
|
|
|
|
exports: 'default',
|
|
|
|
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-11 11:41:32 +03:00
|
|
|
},
|
|
|
|
sourcemap: false,
|
|
|
|
}],
|
2020-10-11 18:12:00 +03:00
|
|
|
external: ['nanoid/non-secure', 'vue', 'vue-property-decorator'],
|
2020-10-09 22:58:28 +03:00
|
|
|
plugins: [
|
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(),
|
|
|
|
autoExternal(),
|
|
|
|
]
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|