Repository navigation
Update dependency @inlang/paraglide-js to v3 - #51
Merged
Merged
Conversation
Paraglide JS 3 makes `outputStructure: "virtual-modules"` the default of the Vite plugin: the generated messages.js then imports `virtual:paraglide/...`, which only Vite can resolve, so anything importing the generated output outside of Vite (the `paraglide-js compile` output used for typecheck and tests, Bun/Node code) would break. The plugin now sets `outputStructure: "message-modules"` explicitly, the layout Paraglide 2 used, so the plugin and the CLI keep generating the same files. Neither `additionalFiles` nor `experimentalMiddlewareLocaleSplitting`, both removed in v3, were used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y3rdfanxjpLranVFzXfytu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
@inlang/paraglide-jsfrom v2 to v3.0.0. 3.1.0 is not used yet: it was released less than 24 hours ago and theminimumReleaseAgein bunfig.toml blocks it; Renovate will pick it up afterwards. (changelog)Breaking changes in v3 and how they affect this repo
outputStructure: "virtual-modules"is the new default of the Vite plugin. The generatedmessages.jsthen re-exportsvirtual:paraglide/..., which only Vite can resolve. Anything importing the generated output outside of Vite (theparaglide-js compileoutput for typecheck/tests, Bun/Node code) breaks. → The plugin now setsoutputStructure: "message-modules"explicitly, the layout v2 used, so plugin and CLI keep generating the same files.project.inlang/cache/. → Added to.gitignore(**/so it also matches nested projects and Biome skips it).additionalFilesandexperimentalMiddlewareLocaleSplittingwere removed. → Not used here..d.tsdeclarations by default. → No change needed.Checked locally
bun run typecheck✅ (root andui)bun run test✅bun run build✅ (root andui)Generated by Claude Code