mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Removes compilerOptions and chunk size warnings
We split some third party packages into their own bundles to reduce the size of the index.js bundle. We also don't need hmr ever in production. Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
+11
-2
@@ -19,7 +19,6 @@ const config: UserConfig = {
|
||||
},
|
||||
plugins: [
|
||||
svelte({
|
||||
hot: !process.env.VITEST,
|
||||
compilerOptions: {
|
||||
dev: process.env.NODE_ENV !== "production",
|
||||
},
|
||||
@@ -47,7 +46,17 @@ const config: UserConfig = {
|
||||
},
|
||||
build: {
|
||||
outDir: "build",
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
ethers: ["ethers", "@ethersproject/abstract-provider"],
|
||||
auth: ["siwe", "@walletconnect/client"],
|
||||
cache: ["lru-cache", "@stardazed/streams"],
|
||||
markdown: ["katex", "dompurify", "marked", "@radicle/gray-matter"],
|
||||
dom: ["svelte", "pure-svg-code", "twemoji"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user