Skip to content

Commit d237197

Browse files
committed
fix(nextjs): add use client directive to support nextjs out of the box
1 parent 94e503e commit d237197

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/tame-apples-sin.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@react-oauth/google': patch
3+
'rollup-config-generator': patch
4+
---
5+
6+
add `use client` directive to support nextjs out of the box

packages/rollup-config-generator/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ module.exports = packageJson =>
1717
{
1818
file: packageJson.main,
1919
format: 'cjs',
20+
banner: "'use client'",
2021
},
2122
{
2223
file: packageJson.module,
2324
format: 'esm',
25+
banner: "'use client'",
2426
},
2527
],
2628
external: Object.keys(packageJson.dependencies || {}).concat(

0 commit comments

Comments
 (0)