1
0
mirror of synced 2024-11-25 06:46:02 +03:00
vue-formulario/build/rollup.iife.config.js

37 lines
1.1 KiB
JavaScript
Raw Normal View History

import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs' // Convert CommonJS modules to ES6
import buble from '@rollup/plugin-buble' // Transpile/polyfill with reasonable browser support
import vue from 'rollup-plugin-vue' // Handle .vue SFC files
import internal from 'rollup-plugin-internal'
import { terser } from 'rollup-plugin-terser'
export default {
2020-05-22 14:22:56 +03:00
input: 'src/Formulario.js', // Path relative to package.json
output: {
2020-05-22 14:22:56 +03:00
name: 'VueFormulario',
2020-02-29 07:30:43 +03:00
exports: 'default',
format: 'iife',
globals: {
'is-plain-object': 'isPlainObject',
2020-02-28 19:19:44 +03:00
'nanoid/non-secure': 'nanoid',
'is-url': 'isUrl',
}
},
plugins: [
resolve({
browser: true,
preferBuiltins: false
}),
commonjs(),
2020-05-22 14:22:56 +03:00
internal(['is-plain-object', 'nanoid/non-secure', 'is-url']),
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()
]
}