Skip to content

fix: bundle typescript into nadle-lsp server#505

Merged
nam-hle merged 1 commit intomainfrom
fix/nadle-lsp-bundle-typescript
Feb 20, 2026
Merged

fix: bundle typescript into nadle-lsp server#505
nam-hle merged 1 commit intomainfrom
fix/nadle-lsp-bundle-typescript

Conversation

@nam-hle
Copy link
Copy Markdown
Member

@nam-hle nam-hle commented Feb 20, 2026

Summary

  • Add typescript to noExternal in nadle-lsp's tsup config so it gets bundled into server.js
  • Without this, the VS Code extension fails on startup with ERR_MODULE_NOT_FOUND: Cannot find package 'typescript' because the installed extension directory has no node_modules/typescript

Root cause

tsup externalizes typescript by default since it's not in noExternal. The bundled server.js emits a bare import ts from "typescript" that works in the monorepo (where typescript is hoisted) but fails in the VS Code extension install directory.

Test plan

  • pnpm -F @nadle/internal-nadle-lsp build succeeds
  • server.js no longer contains from "typescript" (it's inlined in a chunk)
  • VS Code extension starts without ERR_MODULE_NOT_FOUND

🤖 Generated with Claude Code

Add typescript to noExternal in tsup config so it gets bundled into
server.js instead of being left as an external import. Without this,
the VS Code extension fails with ERR_MODULE_NOT_FOUND because
typescript is not available in the extension install directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nam-hle nam-hle enabled auto-merge (squash) February 20, 2026 14:59
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 20, 2026

Deploy Preview for nadle ready!

Name Link
🔨 Latest commit c71538d
🔍 Latest deploy log https://app.netlify.com/projects/nadle/deploys/699876bae19826000887e1ed
😎 Deploy Preview https://deploy-preview-505--nadle.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 80
Accessibility: 98
Best Practices: 100
SEO: 100
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 20, 2026

size-limit report 📦

Path Size
bundled 128.62 KB (0%)

@nam-hle nam-hle disabled auto-merge February 20, 2026 15:00
@nam-hle nam-hle enabled auto-merge (squash) February 20, 2026 15:00
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 20, 2026

Open in StackBlitz

npx https://pkg.pr.new/nadlejs/nadle/create-nadle@505
npx https://pkg.pr.new/nadlejs/nadle@505
npx https://pkg.pr.new/nadlejs/nadle/nadle-vscode@505

commit: c71538d

@nam-hle nam-hle disabled auto-merge February 20, 2026 15:00
@nam-hle nam-hle merged commit 8f129c0 into main Feb 20, 2026
19 checks passed
@nam-hle nam-hle deleted the fix/nadle-lsp-bundle-typescript branch February 20, 2026 15:00
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.

1 participant