From cceff3373a467fdd619679b2297ef7fb37f8cba0 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Mon, 18 Nov 2024 11:08:07 -0800 Subject: [PATCH] fix: externalize non-ESM dependencies --- packages/calcite-components/vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/calcite-components/vite.config.ts b/packages/calcite-components/vite.config.ts index d3eb1f4fed1..4118fad90fb 100644 --- a/packages/calcite-components/vite.config.ts +++ b/packages/calcite-components/vite.config.ts @@ -9,6 +9,8 @@ import replace from "@rollup/plugin-replace"; import { version } from "./package.json"; import tailwindConfig from "./tailwind.config"; +const nonEsmDependencies = ["color", "interactjs"]; + export default defineConfig({ plugins: [ useLumina({ @@ -16,6 +18,10 @@ export default defineConfig({ cdn: { namespace: "calcite", }, + dependencies: { + // Workaround for https://github.com/Esri/calcite-design-system/issues/10761 + externalize: nonEsmDependencies, + }, ssr: { stencilCompatibility: { enabled: true,