You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
361 B
24 lines
361 B
import buble from 'rollup-plugin-buble';
|
|
import camelCase from 'camelcase';
|
|
|
|
const pkg = require('./package.json');
|
|
|
|
export default {
|
|
input: 'src/index.js',
|
|
plugins: [
|
|
buble()
|
|
],
|
|
output: [
|
|
{
|
|
file: pkg.main,
|
|
format: 'umd',
|
|
name: camelCase(pkg.name),
|
|
sourcemap: true
|
|
},
|
|
{
|
|
file: pkg.module,
|
|
format: 'es',
|
|
sourcemap: true
|
|
}
|
|
]
|
|
};
|
|
|