17 lines
353 B
JavaScript
17 lines
353 B
JavaScript
import babel from 'rollup-plugin-babel';
|
|
|
|
export default {
|
|
input: 'src/index.js',
|
|
output: [
|
|
{ file: 'index.js', format: 'cjs', sourcemap: true, strict: false },
|
|
{ file: 'index.mjs', format: 'esm', sourcemap: true, strict: false }
|
|
],
|
|
plugins: [
|
|
babel({
|
|
presets: [
|
|
['@babel/env', { modules: false, targets: { node: 8 } }]
|
|
]
|
|
})
|
|
]
|
|
};
|