Skip to content

Commit

Permalink
fix: externalize non-ESM dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco committed Nov 18, 2024
1 parent 0df0889 commit cceff33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/calcite-components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ 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({
build: {
cdn: {
namespace: "calcite",
},
dependencies: {
// Workaround for https://github.com/Esri/calcite-design-system/issues/10761
externalize: nonEsmDependencies,
},
ssr: {
stencilCompatibility: {
enabled: true,
Expand Down

0 comments on commit cceff33

Please sign in to comment.