2020-03-07 09:03:59 -05: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 10:46:08 -05:00
|
|
|
import autoExternal from 'rollup-plugin-auto-external'
|
2019-10-07 10:24:30 -04:00
|
|
|
import vue from 'rollup-plugin-vue' // Handle .vue SFC files
|
2020-02-27 01:18:51 -05:00
|
|
|
import { terser } from 'rollup-plugin-terser'
|
2019-10-07 10:24:30 -04:00
|
|
|
|
|
|
|
export default {
|
2020-05-22 14:22:56 +03:00
|
|
|
input: 'src/Formulario.js', // Path relative to package.json
|
2020-03-07 09:03:59 -05:00
|
|
|
output: [
|
|
|
|
{
|
2020-05-22 14:22:56 +03:00
|
|
|
name: 'Formulario',
|
2020-03-07 09:03:59 -05:00
|
|
|
exports: 'default',
|
|
|
|
globals: {
|
|
|
|
'is-plain-object': 'isPlainObject',
|
|
|
|
'nanoid/non-secure': 'nanoid',
|
|
|
|
'is-url': 'isUrl',
|
2020-04-16 10:21:12 -04:00
|
|
|
},
|
|
|
|
sourcemap: false
|
2020-02-28 11:19:44 -05:00
|
|
|
}
|
2020-03-07 09:03:59 -05:00
|
|
|
],
|
2020-02-28 11:19:44 -05:00
|
|
|
external: ['nanoid/non-secure'],
|
2019-10-07 10:24:30 -04:00
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
2020-02-28 10:46:08 -05:00
|
|
|
autoExternal(),
|
2019-10-07 10:24:30 -04:00
|
|
|
vue({
|
|
|
|
css: true, // Dynamically inject css as a <style> tag
|
|
|
|
compileTemplate: true // Explicitly convert template to render function
|
|
|
|
}),
|
2019-10-08 13:50:53 -04:00
|
|
|
buble({
|
|
|
|
objectAssign: 'Object.assign'
|
2020-02-27 01:18:51 -05:00
|
|
|
}), // Transpile to ES5,
|
|
|
|
terser()
|
2019-10-07 10:24:30 -04:00
|
|
|
]
|
|
|
|
}
|