Skip to content

Commit

Permalink
fix: Fixed an error caused by not getting the type file correctly for…
Browse files Browse the repository at this point in the history
… a higher version of vite(gxmari007#86,gxmari007#84)
  • Loading branch information
XiaoDaiGua-Ray committed Dec 14, 2023

Verified

This commit was signed with the committer’s verified signature.
fabiankaegy Fabian Kägy
1 parent 6a95067 commit 0f883dd
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"lib": ["ES2015", "DOM", "DOM.Iterable"],
"moduleResolution": "node",
"allowJs": true,
"strict": true,
"noUnusedLocals": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"jsx": "preserve",
"skipLibCheck": true,
"noEmit": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}
3 changes: 2 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,8 @@ export default defineConfig((options) => ({
entry: options.entry || ['./src/index.ts'],
dts: options.dts || true,
format: options.format || ['esm', 'cjs'],
watch: options.watch || false,
target: 'es2015',
platform: 'node',
clean: true,
minify: true,
}))

0 comments on commit 0f883dd

Please sign in to comment.