[Src][s]: Move src to root folder
This commit is contained in:
20
rollup.config.js
Normal file
20
rollup.config.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import babel from '@rollup/plugin-babel';
|
||||
import external from 'rollup-plugin-peer-deps-external';
|
||||
import del from 'rollup-plugin-delete';
|
||||
import pkg from './package.json';
|
||||
|
||||
export default {
|
||||
input: pkg.source,
|
||||
output: [
|
||||
{ file: pkg.main, format: 'cjs' },
|
||||
{ file: pkg.module, format: 'esm' }
|
||||
],
|
||||
plugins: [
|
||||
external(),
|
||||
babel({
|
||||
exclude: 'node_modules/**'
|
||||
}),
|
||||
del({ targets: ['dist/*'] }),
|
||||
],
|
||||
external: Object.keys(pkg.peerDependencies || {}),
|
||||
};
|
||||
Reference in New Issue
Block a user