mirror of
https://github.com/alex8088/electron-vite.git
synced 2026-06-05 13:18:17 +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: [
|
plugins: [
|
||||||
rm('dist', 'buildStart'),
|
rm('dist', 'buildStart'),
|
||||||
json(),
|
json(),
|
||||||
ts({ compilerOptions: { rootDir: 'src', declaration: true, declarationDir: 'dist/types' } }),
|
ts({ compilerOptions: { rootDir: 'src', outDir: 'dist', declaration: true, declarationDir: 'dist/types' } }),
|
||||||
resolve()
|
resolve()
|
||||||
],
|
],
|
||||||
treeshake: {
|
treeshake: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user