Skip to content

Conversation

@swalker326
Copy link
Contributor

What's added in this PR?

Provide an implementation summary. What did you add beyond the described task? What are the additional details you'd like people to pay attention to? To help people review this PR understand what's changed.

Screenshots

If applicable, add some screenshots of the expected behavior.

What's the issues or discussion related to this PR ?

Provide some background information related to this PR, including issues or task. Prior to this PR what's the behavior that wasn't expected.

If there wasn't discussion related to this PR, you can include the reasoning behind this PR of why you did it.

What are the steps to test this PR?

To help reviewer and tester to understand what's needed

Documentation update for this PR (if applicable)?

Add documentation if how the application will behave differently than previous state. Copy paste your PR in zephyr-documentation PR link here.

(Optional) What's left to be done for this PR?

(Optional) What's the potential risk and how to mitigate it?

(Required) Pre-PR/Merge checklist

  • I have added/updated/opened a PR to documentation to cover this new behavior
  • I have added an explanation of my changes
  • I have written new tests (if applicable)
  • I have tested this locally (standing from a first time user point of view, never touch this app before)
  • I have/will run tests, or ask for help to add test

@nx-cloud
Copy link

nx-cloud bot commented Nov 2, 2025

View your CI Pipeline Execution ↗ for commit 0207fd0

Command Status Duration Result
nx run e2e-deployment:e2e-test -- --passWithNoT... ✅ Succeeded <1s View ↗
nx affected -t build --skipRemoteCache ✅ Succeeded 4m 28s View ↗
nx affected -t test ✅ Succeeded 1m 55s View ↗
nx affected -t lint ✅ Succeeded 6s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-15 13:02:01 UTC

@swalker326 swalker326 changed the title Feat/tanstack start plugin feat: Added tanstack start plugin Nov 14, 2025
@swalker326 swalker326 temporarily deployed to canary-publishing December 5, 2025 11:30 — with GitHub Actions Inactive
@swalker326 swalker326 temporarily deployed to canary-publishing December 9, 2025 20:14 — with GitHub Actions Inactive
zackarychapple
zackarychapple previously approved these changes Dec 12, 2025
function getAssetType(item: { fileName?: string; name?: string }): string {
const fileName = item.fileName || item.name || '';
const ext = path.extname(fileName).toLowerCase();
const typeMap: Record<string, string> = {
Copy link
Member

Choose a reason for hiding this comment

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

Should we include .cjs in this ?

Copy link
Member

Choose a reason for hiding this comment

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

workers don't support commonsjs

Comment on lines +115 to +116
console.log(`[TanStack Zephyr] Output directory: ${outputDir}`);
console.log(`[TanStack Zephyr] Server entrypoint: ${entrypoint}`);
Copy link
Member

Choose a reason for hiding this comment

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

Should we remove these logs and make it use Zephyrs ?

"zephyr-agent": "workspace:*"
},
"peerDependencies": {
"@tanstack/start": "^1.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be @tanstack/react-start ?

Suggested change
"@tanstack/start": "^1.0.0"
"@tanstack/react-start": "^1.0.0"

import type { OutputBundle, OutputAsset, OutputChunk } from 'rollup';

/** Recursively get all files in a directory */
async function getAllFiles(dir: string, baseDir?: string): Promise<string[]> {
Copy link
Member

Choose a reason for hiding this comment

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

doesn't node have a fs.readdir(dirPath, { recursive: true })?


// Load ALL build output preserving directory structure
// This includes server/, client/, and any root files (favicon.ico, etc.)
const bundle = await loadTanStackOutput(outputDir);
Copy link
Member

Choose a reason for hiding this comment

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

I assume this is more a question than a review comment, but couldn't we hijack the onGenerateBundle from Vite's to grab all built assets instead of having to read dist folder and all complications it have?

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.

7 participants