1
0
mirror of synced 2024-11-26 07:16:02 +03:00
vue-formulario/build/rollup.config.js

27 lines
775 B
JavaScript

import commonjs from 'rollup-plugin-commonjs' // Convert CommonJS modules to ES6
import vue from 'rollup-plugin-vue' // Handle .vue SFC files
import buble from 'rollup-plugin-buble' // Transpile/polyfill with reasonable browser support
export default {
input: 'src/Formulate.js', // Path relative to package.json
output: {
name: 'Formulate',
exports: 'named',
globals: {
'is-plain-object': 'isPlainObject',
'nanoid': 'nanoid'
}
},
external: ['is-plain-object', 'nanoid'],
plugins: [
commonjs(),
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
]
}