-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
27 lines (27 loc) · 903 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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/index.js', // Path relative to package.json
output: [{
name: 'ExtendedTable',
exports: 'named',
file: 'dist/extended-table.esm.js',
format: 'esm'
},{
name: 'ExtendedTable',
exports: 'named',
file: 'dist/extended-table.umd.js',
format: 'umd'
}],
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
]
};