Skip to content

Commit

Permalink
fix: add newline after "use client" for .js builds (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Sep 26, 2024
1 parent a870315 commit ed24305
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .changeset/stupid-impalas-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@assistant-ui/react-playground": patch
"@tool-ui/weather": patch
"@assistant-ui/react-markdown": patch
"@assistant-ui/react": patch
---

fix: add newline after "use client" for .js builds
2 changes: 1 addition & 1 deletion packages/react-markdown/scripts/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ await build({
clean: true,
esbuildOptions: (options) => {
options.banner = {
js: '"use client";',
js: '"use client";\n',
};
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/react-playground/scripts/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ await build({
clean: true,
esbuildOptions: (options) => {
options.banner = {
js: '"use client";',
js: '"use client";\n',
};
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/react/scripts/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ await build({
splitting: true,
esbuildOptions: (options) => {
options.banner = {
js: '"use client";',
js: '"use client";\n',
};
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/tool-ui-weather/scripts/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ await build({
clean: true,
esbuildOptions: (options) => {
options.banner = {
js: '"use client";',
js: '"use client";\n',
};
},
});

0 comments on commit ed24305

Please sign in to comment.