Skip to content

Commit

Permalink
build: set interop to auto for output config (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
crispipear authored Oct 30, 2024
1 parent 5bd789e commit 3dcb219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ const config = [
banner: "\"use client\";",
file: pkg.main,
format: "cjs",
interop: "auto"
},
{
// Ensures "use client" is added at the top of each output file.
banner: "\"use client\";",
file: pkg.module,
format: "esm",
interop: "auto"
},
],
plugins: [
Expand Down
2 changes: 2 additions & 0 deletions packages/data-viz/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ const config = [
banner: "\"use client\";",
file: pkg.main,
format: "cjs",
interop: "auto"
},
{
// Ensures "use client" is added at the top of each output file.
banner: "\"use client\";",
file: pkg.module,
format: "esm",
interop: "auto"
},
],
plugins: [
Expand Down

0 comments on commit 3dcb219

Please sign in to comment.