Skip to content

Commit 46331cb

Browse files
committed
Create rollup config
1 parent a496cf6 commit 46331cb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

rollup.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import typescript from '@rollup/plugin-typescript';
2+
import resolve from '@rollup/plugin-node-resolve';
3+
import commonjs from '@rollup/plugin-commonjs';
4+
5+
export default {
6+
input: 'src/index.ts',
7+
output: {
8+
file: 'dist/bundle.js',
9+
format: 'cjs',
10+
sourcemap: true,
11+
},
12+
plugins: [
13+
typescript(),
14+
resolve(),
15+
commonjs(),
16+
],
17+
external: ['node:fs', 'node:path'],
18+
};

0 commit comments

Comments
 (0)