Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: separating server / client component #669

Open
minsoo-web opened this issue Jan 29, 2024 · 0 comments
Open

[Feature]: separating server / client component #669

minsoo-web opened this issue Jan 29, 2024 · 0 comments
Assignees

Comments

@minsoo-web
Copy link
Member

Package Scope

@suspensive/react, @suspensive/react-query, @suspensive/react-await, @suspensive/react-image

Description

I don't want see this build logs for my SPA app.

How about separating build versions for server components like next, or adding 'use client' directly where the user uses it?

image

Possible Solution

The first thing to do is to delete the banner part of tsup.config

You can also call use client directly, or change the import path to

import { Suspicious } from "@suspensive/react/client/index.js"

instead?

etc.

I'm using

"vite": "^4.2.0",
"@suspensive/react": "^1.25.3",
"@suspensive/react-image": "^0.0.10",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant