suspensive icon indicating copy to clipboard operation
suspensive copied to clipboard

[Feature]: separating server / client component

Open minsoo-web opened this issue 1 year ago • 0 comments

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",

minsoo-web avatar Jan 29 '24 09:01 minsoo-web