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
405 B
24 lines
405 B
import babel from 'rollup-plugin-babel';
|
|
import camelCase from 'camelcase';
|
|
|
|
const pkg = require('./package.json');
|
|
|
|
export default {
|
|
entry: 'src/index.js',
|
|
plugins: [
|
|
babel(),
|
|
],
|
|
targets: [
|
|
{
|
|
dest: pkg.main,
|
|
format: 'umd',
|
|
moduleName: camelCase(pkg.name),
|
|
sourceMap: true
|
|
},
|
|
{
|
|
dest: pkg.module,
|
|
format: 'es',
|
|
sourceMap: true
|
|
}
|
|
]
|
|
};
|
|
|