Skip to content

Commit

Permalink
feat(react): add "use client" for react bundle (#1902)
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko authored Apr 3, 2024
1 parent a3d61d8 commit 5cf50ff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/react/build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineBuildConfig } from "unbuild"

export default defineBuildConfig({
rollup: {
output: {
banner: (chunk: any) => {
if (chunk.name === "index") {
return `'use client';`
}
},
},
},
})

0 comments on commit 5cf50ff

Please sign in to comment.