Skip to content

Commit 0dfbf00

Browse files
committed
chore: update config
1 parent 708d0ac commit 0dfbf00

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

rollup.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
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'
33

44
export default {
55
input: './src/index.ts',
66
output: [
77
{
88
file: './build/index.js',
99
format: 'esm',
10+
sourcemap: true,
1011
},
1112
],
1213
plugins: [
13-
typescript({tsconfig: './tsconfig.json'}),
14+
typescript({ tsconfig: './tsconfig.json' }),
1415
terser(),
1516
],
16-
};
17+
}

tsconfig.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
"outDir": "build",
66
"skipLibCheck": true,
77
"allowSyntheticDefaultImports": true,
8+
"moduleResolution": "bundler",
9+
"importHelpers": true,
810
"isolatedModules": true,
911
"esModuleInterop": true,
10-
"preserveConstEnums": true
12+
"verbatimModuleSyntax": true,
13+
"target": "ES2022",
14+
"module": "ES2022",
15+
"lib": [
16+
"ES2022"
17+
],
1118
},
1219
"include": [
1320
"src/**/*.ts",

0 commit comments

Comments
 (0)