File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
- import typescript from '@rollup/plugin-typescript' ;
2
- import terser from '@rollup/plugin-terser' ;
1
+ import terser from '@rollup/plugin-terser'
2
+ import typescript from '@rollup/plugin-typescript'
3
3
4
4
export default {
5
5
input : './src/index.ts' ,
6
6
output : [
7
7
{
8
8
file : './build/index.js' ,
9
9
format : 'esm' ,
10
+ sourcemap : true ,
10
11
} ,
11
12
] ,
12
13
plugins : [
13
- typescript ( { tsconfig : './tsconfig.json' } ) ,
14
+ typescript ( { tsconfig : './tsconfig.json' } ) ,
14
15
terser ( ) ,
15
16
] ,
16
- } ;
17
+ }
Original file line number Diff line number Diff line change 5
5
"outDir" : " build" ,
6
6
"skipLibCheck" : true ,
7
7
"allowSyntheticDefaultImports" : true ,
8
+ "moduleResolution" : " bundler" ,
9
+ "importHelpers" : true ,
8
10
"isolatedModules" : true ,
9
11
"esModuleInterop" : true ,
10
- "preserveConstEnums" : true
12
+ "verbatimModuleSyntax" : true ,
13
+ "target" : " ES2022" ,
14
+ "module" : " ES2022" ,
15
+ "lib" : [
16
+ " ES2022"
17
+ ],
11
18
},
12
19
"include" : [
13
20
" src/**/*.ts" ,
You can’t perform that action at this time.
0 commit comments