Skip to content

Commit ac0fefe

Browse files
committed
Refine config
1 parent 40afeb8 commit ac0fefe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vite.config.dev-pages.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import { defineConfig } from "vite";
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010

11-
const chatComponentsPath = resolve(__dirname, "lib/components");
11+
const componentsPath = resolve(__dirname, "lib/components");
1212

13-
const globals = { [chatComponentsPath]: "chatComponents" };
13+
const globals = { [componentsPath]: "components" };
1414

1515
// https://vitejs.dev/config/
1616
export default defineConfig({
@@ -28,7 +28,7 @@ export default defineConfig({
2828
},
2929
outDir: "lib/dev-pages/bundle",
3030
rollupOptions: {
31-
external: [chatComponentsPath],
31+
external: [componentsPath],
3232
output: {
3333
globals,
3434
},

0 commit comments

Comments
 (0)