Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Removes `compilerOptions` and chunk size warnings
Sebastian Martinez committed 3 years ago
commit c8b99a8b7434bfb91fdcb88a645061fbaa9a5b3e
parent d97e4b5f7b21c55d3f26976b7925719d7a75b9b7
1 file changed +11 -2
modified vite.config.ts
@@ -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"],
+
        },
+
      },
+
    },
  },
};