Skip to content

Commit 92aef53

Browse files
committedApr 28, 2023
Add "use client" to build ouput
Improve RSC support
1 parent d897ad8 commit 92aef53

File tree

3 files changed

+852
-597
lines changed

3 files changed

+852
-597
lines changed
 

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090
"size-limit": "^7.0.8",
9191
"ts-jest": "^28.0.6",
9292
"tslib": "^2.4.0",
93-
"tsup": "^6.1.3",
94-
"typescript": "^4.7.4"
93+
"tsup": "^6.7.0",
94+
"typescript": "^5.0.4"
9595
},
9696
"dependencies": {
9797
"goober": "^2.1.10"

‎pnpm-lock.yaml

+844-595
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tsup.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ const commonConfig: Options = {
1010
export default defineConfig([
1111
{
1212
...commonConfig,
13+
esbuildOptions: (options) => {
14+
// Append "use client" to the top of the react entry point
15+
options.banner = {
16+
js: '"use client";',
17+
};
18+
},
1319
entry: ['src/index.ts'],
1420
outDir: 'dist',
1521
},

0 commit comments

Comments
 (0)
Please sign in to comment.