aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/vite.config.js
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-23 16:04:18 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-23 16:15:14 +0100
commit9d74dfdb7ab3f4ce06bab00ce685541293bd37a6 (patch)
treeba740551142d483ef975cc7ced2425986a58302b /packages/shared/vite.config.js
parentfeat: Add react and mobx integration (diff)
downloadsophie-9d74dfdb7ab3f4ce06bab00ce685541293bd37a6.tar.gz
sophie-9d74dfdb7ab3f4ce06bab00ce685541293bd37a6.tar.zst
sophie-9d74dfdb7ab3f4ce06bab00ce685541293bd37a6.zip
build: Enable typescript composite mode and clean
Moves all typings to the dist-types directories from the dist directories so that we can let vite clean the dist directories on build without clobbering the typings generated by tsc.
Diffstat (limited to 'packages/shared/vite.config.js')
-rw-r--r--packages/shared/vite.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/shared/vite.config.js b/packages/shared/vite.config.js
index 05ec118..a3efc87 100644
--- a/packages/shared/vite.config.js
+++ b/packages/shared/vite.config.js
@@ -36,7 +36,7 @@ const config = {
36 ...builtinModules, 36 ...builtinModules,
37 ], 37 ],
38 }, 38 },
39 emptyOutDir: false, // Do not remove `.d.ts` files. 39 emptyOutDir: true,
40 brotliSize: false, 40 brotliSize: false,
41 }, 41 },
42}; 42};