2019-10-07 17:24:30 +03:00
|
|
|
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',
|
2019-11-08 01:03:34 +03:00
|
|
|
'nanoid': 'nanoid',
|
|
|
|
'is-url': 'isUrl'
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|
|
|
|
},
|
2019-11-08 01:03:34 +03:00
|
|
|
external: ['is-plain-object', 'nanoid', 'is-url'],
|
2019-10-07 17:24:30 +03:00
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
|
|
|
vue({
|
|
|
|
css: true, // Dynamically inject css as a <style> tag
|
|
|
|
compileTemplate: true // Explicitly convert template to render function
|
|
|
|
}),
|
2019-10-08 20:50:53 +03:00
|
|
|
buble({
|
|
|
|
objectAssign: 'Object.assign'
|
|
|
|
}) // Transpile to ES5
|
2019-10-07 17:24:30 +03:00
|
|
|
]
|
|
|
|
}
|