Skip to content

fix: add @types/babel__core to vite project template#3723

Merged
bartlomieju merged 2 commits into
mainfrom
fix/init-babel-types
Mar 29, 2026
Merged

fix: add @types/babel__core to vite project template#3723
bartlomieju merged 2 commits into
mainfrom
fix/init-babel-types

Conversation

@bartlomieju

Copy link
Copy Markdown
Contributor

Summary

  • New projects with nodeModulesDir: "manual" fail deno check because Deno can't resolve types for @babel/core (imported by @fresh/plugin-vite)
  • Fix: add @types/babel__core to the init template's imports so new Vite-based projects include it explicitly

Closes #3605

Test plan

  • Run deno run -A jsr:@fresh/init, create a new project with Vite
  • Verify @types/babel__core appears in the generated deno.json imports
  • Run deno task check / deno check — should pass without manually installing @types/babel__core

🤖 Generated with Claude Code

New projects using nodeModulesDir: "manual" fail type-checking because
Deno can't resolve the @types/babel__core types needed by
@fresh/plugin-vite's @babel/core import. Adding it explicitly to the
init template fixes the issue.

Closes #3605

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bartlomieju bartlomieju changed the title fix(init): add @types/babel__core to vite project template fix: add @types/babel__core to vite project template Mar 29, 2026
@bartlomieju bartlomieju enabled auto-merge (squash) March 29, 2026 18:59
@bartlomieju bartlomieju merged commit e6b25a0 into main Mar 29, 2026
7 of 9 checks passed
@bartlomieju bartlomieju deleted the fix/init-babel-types branch March 29, 2026 19:04
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.

Project Fails to build without npm:@types/babel__core

1 participant