-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
better client server segregation #9396
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
We had this discussion before where I was against it, because someone might want to do A more defensive way would be to only have two different versions of |
@@ -21,3 +10,6 @@ export function beforeUpdate() {} | |||
|
|||
/** @returns {void} */ | |||
export function afterUpdate() {} | |||
|
|||
// TODO: Either move to common or replace with empty functions because some of these |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these...? 😄
Closing in favor of #9468 |
See #9392 for why,
this doesn't quite fix it just yet, but the sane way to fix that imo is to not import any client side specific modules from the server runtime, and keep those as separate entry points instead of
typeof window
checksSvelte compiler rewrite
Please note that the Svelte codebase is currently being rewritten. Thus, it's best to hold off on new features or refactorings for the time being.
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.Tests and linting
pnpm test
and lint the project withpnpm lint