File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,24 @@ import typescript from '@rollup/plugin-typescript';
4
4
import { terser } from 'rollup-plugin-terser' ;
5
5
6
6
export default {
7
- input : 'src/index.ts' , // Entry point of your library
7
+ input : 'src/index.ts' ,
8
8
output : [
9
9
{
10
10
file : 'dist/bundle.cjs.js' ,
11
- format : 'cjs' , // CommonJS format for Node.js
11
+ format : 'cjs' ,
12
12
sourcemap : true ,
13
13
} ,
14
14
{
15
15
file : 'dist/bundle.esm.js' ,
16
- format : 'esm' , // ES module format for modern browsers
16
+ format : 'esm' ,
17
17
sourcemap : true ,
18
18
} ,
19
19
] ,
20
20
plugins : [
21
- resolve ( ) , // Resolves node_modules
22
- commonjs ( ) , // Converts CommonJS to ES6
23
- typescript ( ) , // Compiles TypeScript
24
- terser ( ) , // Minifies the bundle
21
+ resolve ( ) ,
22
+ commonjs ( ) ,
23
+ typescript ( ) ,
24
+ terser ( ) ,
25
25
] ,
26
- external : [ 'node-fetch' ] , // Exclude node-fetch from the bundle
26
+ external : [ 'node-fetch' ] ,
27
27
} ;
You can’t perform that action at this time.
0 commit comments