2020-03-07 17:03:59 +03:00
|
|
|
import commonjs from '@rollup/plugin-commonjs' // Convert CommonJS modules to ES6
|
|
|
|
import buble from '@rollup/plugin-buble' // Transpile/polyfill with reasonable browser support
|
2020-02-28 18:46:08 +03:00
|
|
|
import autoExternal from 'rollup-plugin-auto-external'
|
2019-10-07 17:24:30 +03:00
|
|
|
import vue from 'rollup-plugin-vue' // Handle .vue SFC files
|
2020-02-27 09:18:51 +03:00
|
|
|
import { terser } from 'rollup-plugin-terser'
|
2019-10-07 17:24:30 +03:00
|
|
|
|
|
|
|
export default {
|
2020-10-09 22:58:28 +03:00
|
|
|
input: 'src/Formulario.js', // Path relative to package.json
|
|
|
|
output: [
|
|
|
|
{
|
|
|
|
name: 'Formulario',
|
|
|
|
exports: 'default',
|
|
|
|
globals: {
|
|
|
|
'is-plain-object': 'isPlainObject',
|
|
|
|
'nanoid/non-secure': 'nanoid',
|
|
|
|
'is-url': 'isUrl',
|
|
|
|
},
|
|
|
|
sourcemap: false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
external: ['nanoid/non-secure'],
|
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
|
|
|
autoExternal(),
|
|
|
|
vue({
|
|
|
|
css: true, // Dynamically inject css as a <style> tag
|
|
|
|
compileTemplate: true // Explicitly convert template to render function
|
|
|
|
}),
|
|
|
|
buble({
|
|
|
|
objectAssign: 'Object.assign'
|
|
|
|
}), // Transpile to ES5,
|
|
|
|
terser()
|
|
|
|
]
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|