Skip to content

Commit

Permalink
fix: cjs builds (#1231)
Browse files Browse the repository at this point in the history
fixes #1230
  • Loading branch information
Yonom authored Nov 30, 2024
1 parent 999431f commit 2276e57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/chilled-boats-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@assistant-ui/react-markdown": patch
"@assistant-ui/react-trieve": patch
"@assistant-ui/react": patch
---

fix: cjs builds
6 changes: 5 additions & 1 deletion packages/tsbuildutils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ const transpileTypescript = async () => {
splitting: false,
silent: true,

esbuildPlugins: [esbuildPluginFilePathExtensions()],
esbuildPlugins: [
esbuildPluginFilePathExtensions({
cjsExtension: "js",
}),
],
});
};

Expand Down

0 comments on commit 2276e57

Please sign in to comment.