Skip to content

Commit 76c6fe7

Browse files
committed
Refine config
1 parent 4b0548f commit 76c6fe7

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
@@ -11,8 +11,6 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
1111

1212
const componentsPath = resolve(__dirname, "lib/components");
1313

14-
const globals = { [componentsPath]: "components", highcharts: "highcharts" };
15-
1614
// https://vitejs.dev/config/
1715
export default defineConfig({
1816
plugins: [react({ fastRefresh: false })],
@@ -24,10 +22,7 @@ export default defineConfig({
2422
},
2523
outDir: "lib/dev-pages/bundle",
2624
rollupOptions: {
27-
external: [componentsPath, "highcharts"],
28-
output: {
29-
globals,
30-
},
25+
external: [componentsPath, "highcharts", /^@cloudscape-design\/*/],
3126
},
3227
},
3328
});

0 commit comments

Comments
 (0)