Skip to content

Conversation

@juliusmarminge
Copy link
Member

@juliusmarminge juliusmarminge commented Oct 26, 2025

EXPERIMENTAL DO NOT USE

For now this is not intended to be merged, just trying it out

I'll post comments throughout this PR what pain points I've experienced trying to migrate this repo to use bun

@vercel
Copy link

vercel bot commented Oct 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
create-t3-turbo-tanstack-start Error Error Oct 26, 2025 2:38am

@socket-security
Copy link

socket-security bot commented Oct 26, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedtypescript-eslint@​8.46.21001007497100
Addednext@​16.0.083100919870
Addedpostcss@​8.5.61001008283100
Addedjiti@​2.6.19910010088100
Addedsuperjson@​2.2.310010010089100
Addedtw-animate-css@​1.4.01001009491100
Addedprettier-plugin-tailwindcss@​0.7.19810010099100

View full report

@socket-security
Copy link

socket-security bot commented Oct 26, 2025

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
[email protected] has Obfuscated code.

Confidence: 0.94

Location: Package overview

From: ?npm/@turbo/[email protected]npm/[email protected]

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
[email protected] has Obfuscated code.

Confidence: 0.94

Location: Package overview

From: ?npm/@turbo/[email protected]npm/[email protected]

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@juliusmarminge
Copy link
Member Author

Configuration

  • LSP plugin is outdated? I don't understand TOML so I don't even know where it's sourcing the options from, why not a .json file with $schema field pointing at the correctly versioned schema?

    image
  • I don't know where to put configs? I very much like that pnpm takes all their config in pnpm-workspace.yaml. With bun, I have workspaces, catalog, catalogs, overrides in package.json, whereas linkWorkspacePackages in bunfig.toml. Would prefer all of these to be in bunfig.

@juliusmarminge
Copy link
Member Author

Module Resolution

Bun's linker = "hoisted" | "isolated" is an all-or-nothing setting. In the current PNPM version of the repo, we have publicHoistPatterns to granularly opt into hoisting for packages that don't handle the isolated modules very well:

publicHoistPattern:
- "@ianvs/prettier-plugin-sort-imports"
- prettier-plugin-tailwindcss
Without this, prettier fails: image. To workaround this issue, I had to install these deps in root (023702c) to "force-hoist" them...

@juliusmarminge
Copy link
Member Author

Installed multiple "versions" of vite??

There appears to be 2 versions of [email protected] installed?

image

This causes type-errors:
image

  • bun pm why vite is not very helpful here as it does not distinguish between these different hash versions so I have no idea why these are different... image

  • This issue persisted despite adding vite to overrides (b01618d): image

  • The only fix I found for this was to use rolldown-vite (f30ea12)? Not sure why this helps but I guess it resolves different deps? image

@juliusmarminge
Copy link
Member Author

Now I'm seeing weird module resolution errors again.

@juliusmarminge juliusmarminge changed the title chore: try out bun experiment: try out bun Oct 26, 2025
@juliusmarminge juliusmarminge changed the title experiment: try out bun experiment: pnpm->bun Oct 26, 2025
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.

2 participants