Skip to content

fix: safe build for target ssr - #109

Merged
AlemTuzlak merged 4 commits into
TanStack:mainfrom
sprusak:feat-start-ssr-prod-build
Sep 5, 2025
Merged

AlemTuzlak merged 4 commits into
TanStack:mainfrom
sprusak:feat-start-ssr-prod-build

Conversation

@sprusak

@sprusak sprusak commented Sep 5, 2025

Copy link
Copy Markdown
Contributor

@sprusak
sprusak force-pushed the feat-start-ssr-prod-build branch from cdb6ec6 to b90a2f2 Compare September 5, 2025 13:28
entries: {
entry: 'src/index.ts',
dev_entry: true,
server_entry: true,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ build for SSR, will pick up this server_entry that have client side only modules removed which makes it safe to use, and Devtols are only ever mounted on the client side

@AlemTuzlak

Copy link
Copy Markdown
Collaborator

I also opened this PR up as a reference to the failing issues you saw: #110

@AlemTuzlak

Copy link
Copy Markdown
Collaborator

Feel free to add those changes and I'll approve and merge and close the other one!
Thank you so much for this!

@AlemTuzlak

AlemTuzlak commented Sep 5, 2025 •

Copy link
Copy Markdown
Collaborator

Also, run pnpm run changeset and add a patch version for all the packages that were changed.

@sprusak

sprusak commented Sep 5, 2025

Copy link
Copy Markdown
Contributor Author

Also, run pnpm run changeset and add a patch version for all the packages that were changed.

OK thanks, I hope its ok now. I guess might be useful to add some step in CI, that verify if changeset is added? I might create some PR

@pkg-pr-new

pkg-pr-new Bot commented Sep 5, 2025

Copy link
Copy Markdown
More templates

@tanstack/devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools@109

@tanstack/devtools-ui

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-ui@109

@tanstack/devtools-vite

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-vite@109

@tanstack/devtools-event-bus

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-event-bus@109

@tanstack/devtools-event-client

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-event-client@109

@tanstack/react-devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/react-devtools@109

@tanstack/solid-devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/solid-devtools@109

commit: 3558b50

@AlemTuzlak

Copy link
Copy Markdown
Collaborator

@sprusak not every PR requires a changeset, it depends, but might be a good idea to see if there's room for improvement!

@AlemTuzlak
AlemTuzlak merged commit 6447ab2 into TanStack:main Sep 5, 2025
@github-actions github-actions Bot mentioned this pull request Sep 5, 2025
@sprusak
sprusak deleted the feat-start-ssr-prod-build branch September 5, 2025 15:32
AlemTuzlak pushed a commit that referenced this pull request Sep 5, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @tanstack/devtools@0.6.8

### Patch Changes

- Changed package.json exports to allow safe usage in ssr environments
([#109](#109))

## @tanstack/react-devtools@0.6.4

### Patch Changes

- Updated dependencies
\[[`6447ab2`](6447ab2)]:
    -   @tanstack/devtools@0.6.8

## @tanstack/solid-devtools@0.6.4

### Patch Changes

- Updated dependencies
\[[`6447ab2`](6447ab2)]:
    -   @tanstack/devtools@0.6.8

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

3 participants