diff --git a/apps/artboard/vite.config.ts b/apps/artboard/vite.config.ts index 0e8e86771..f55e5b5fe 100644 --- a/apps/artboard/vite.config.ts +++ b/apps/artboard/vite.config.ts @@ -2,7 +2,7 @@ import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin"; import react from "@vitejs/plugin-react-swc"; -import { defineConfig, searchForWorkspaceRoot, splitVendorChunkPlugin } from "vite"; +import { defineConfig, searchForWorkspaceRoot } from "vite"; export default defineConfig({ base: "/artboard/", @@ -11,6 +11,7 @@ export default defineConfig({ build: { sourcemap: true, + emptyOutDir: true, }, server: { @@ -19,7 +20,7 @@ export default defineConfig({ fs: { allow: [searchForWorkspaceRoot(process.cwd())] }, }, - plugins: [react(), nxViteTsPaths(), splitVendorChunkPlugin()], + plugins: [react(), nxViteTsPaths()], resolve: { alias: { diff --git a/apps/client/vite.config.ts b/apps/client/vite.config.ts index f80a57254..bc6aad3f1 100644 --- a/apps/client/vite.config.ts +++ b/apps/client/vite.config.ts @@ -3,13 +3,14 @@ import { lingui } from "@lingui/vite-plugin"; import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin"; import react from "@vitejs/plugin-react"; -import { defineConfig, searchForWorkspaceRoot, splitVendorChunkPlugin } from "vite"; +import { defineConfig, searchForWorkspaceRoot } from "vite"; export default defineConfig({ cacheDir: "../../node_modules/.vite/client", build: { sourcemap: true, + emptyOutDir: true, }, define: { @@ -38,7 +39,6 @@ export default defineConfig({ }), lingui(), nxViteTsPaths(), - splitVendorChunkPlugin(), ], test: { diff --git a/libs/hooks/vite.config.ts b/libs/hooks/vite.config.ts index 7fb1ef823..3e0330d43 100644 --- a/libs/hooks/vite.config.ts +++ b/libs/hooks/vite.config.ts @@ -3,7 +3,7 @@ import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin"; import react from "@vitejs/plugin-react-swc"; import * as path from "path"; -import { defineConfig, splitVendorChunkPlugin } from "vite"; +import { defineConfig } from "vite"; import dts from "vite-plugin-dts"; export default defineConfig({ @@ -12,7 +12,6 @@ export default defineConfig({ plugins: [ react(), nxViteTsPaths(), - splitVendorChunkPlugin(), dts({ entryRoot: "src", tsconfigPath: path.join(__dirname, "tsconfig.lib.json"), @@ -20,6 +19,7 @@ export default defineConfig({ ], build: { + emptyOutDir: true, lib: { entry: "src/index.ts", name: "hooks", diff --git a/libs/ui/vite.config.ts b/libs/ui/vite.config.ts index a957a0204..4ce46ef6e 100644 --- a/libs/ui/vite.config.ts +++ b/libs/ui/vite.config.ts @@ -3,7 +3,7 @@ import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin"; import react from "@vitejs/plugin-react-swc"; import * as path from "path"; -import { defineConfig, searchForWorkspaceRoot, splitVendorChunkPlugin } from "vite"; +import { defineConfig, searchForWorkspaceRoot } from "vite"; import dts from "vite-plugin-dts"; export default defineConfig({ @@ -16,7 +16,6 @@ export default defineConfig({ plugins: [ react(), nxViteTsPaths(), - splitVendorChunkPlugin(), dts({ entryRoot: "src", tsconfigPath: path.join(__dirname, "tsconfig.lib.json"), @@ -24,6 +23,7 @@ export default defineConfig({ ], build: { + emptyOutDir: true, lib: { entry: "src/index.ts", name: "ui",