mirror of
https://github.com/alex8088/electron-vite.git
synced 2026-06-05 05:08:13 +08:00
fix: Typescript compiler option 'outDir' must be located inside Rollup 'dir' option
This commit is contained in:
parent
201eb213ac
commit
a9a496dc1a
@ -26,7 +26,7 @@ export default defineConfig([
|
||||
plugins: [
|
||||
rm('dist', 'buildStart'),
|
||||
json(),
|
||||
ts({ compilerOptions: { rootDir: 'src', declaration: true, declarationDir: 'dist/types' } }),
|
||||
ts({ compilerOptions: { rootDir: 'src', outDir: 'dist', declaration: true, declarationDir: 'dist/types' } }),
|
||||
resolve()
|
||||
],
|
||||
treeshake: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user