Skip to content

Commit 55b6706

Browse files
committed
Refine config
1 parent 0b70b9e commit 55b6706

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

vite.config.dev-pages.mjs

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

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

12-
const componentsPath = resolve(__dirname, "lib/components");
13-
1412
// https://vitejs.dev/config/
1513
export default defineConfig({
1614
plugins: [react({ fastRefresh: false })],
@@ -22,7 +20,7 @@ export default defineConfig({
2220
},
2321
outDir: "lib/dev-pages/bundle",
2422
rollupOptions: {
25-
external: [componentsPath, "highcharts", /^@cloudscape-design\/*/],
23+
external: [/(?:\.\.\/)+?lib\/components/, /^@cloudscape-design\//, "highcharts", "react"],
2624
},
2725
},
2826
});

0 commit comments

Comments
 (0)