Skip to content

Commit 9c297a0

Browse files
committed
Refine config
1 parent 5af0292 commit 9c297a0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

vite.config.dev-pages.mjs

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

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

11-
const componentsPath = resolve(__dirname, "lib/components");
12-
1311
// https://vitejs.dev/config/
1412
export default defineConfig({
1513
plugins: [react({ fastRefresh: false })],
@@ -26,10 +24,7 @@ export default defineConfig({
2624
},
2725
outDir: "lib/dev-pages/bundle",
2826
rollupOptions: {
29-
external: [componentsPath, /^@cloudscape-design\/*/, "react"],
30-
output: {
31-
globals: { [componentsPath]: "components", react: "React" },
32-
},
27+
external: [/(?:\.\.\/)+?lib\/components/, /^@cloudscape-design\//, "react"],
3328
},
3429
},
3530
});

0 commit comments

Comments
 (0)