Skip to content

Commit 8868cc5

Browse files
juristrFrozenPandaz
authored andcommitted
fix(nextjs): remove whitespace for newly generated server component
(cherry picked from commit 1d687c4)
1 parent f9c85ad commit 8868cc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/next/src/generators/library/library.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ export async function libraryGeneratorInternal(host: Tree, rawOptions: Schema) {
117117
`hello-server.${options.js ? 'js' : 'tsx'}`
118118
),
119119
`// React server components are async so you make database or API calls.
120-
export async function HelloServer() {
121-
return <h1>Hello Server</h1>
122-
}
123-
`
120+
export async function HelloServer() {
121+
return <h1>Hello Server</h1>;
122+
}
123+
`
124124
);
125125

126126
const isTsSolutionSetup = isUsingTsSolutionSetup(host);

0 commit comments

Comments
 (0)