Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@lingui/conf": "5.9.2"
},
"peerDependencies": {
"vite": "^3 || ^4 || ^5.0.9 || ^6 || ^7"
"vite": "^3 || ^4 || ^5.0.9 || ^6 || ^7 || ^8"
},
"devDependencies": {
"@lingui/core": "workspace:^",
Expand Down
4 changes: 4 additions & 0 deletions packages/vite-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ Please check that catalogs.path is filled properly.\n`
return {
code,
map: null, // provide source map if available
// Vite 8+ (Rolldown) auto-detects module types by file extension.
// Since .po files are transformed to JS, we must explicitly declare
// the module type to avoid misinterpretation.
moduleType: "js",
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3350,7 +3350,7 @@ __metadata:
vite: 6.0.2
vite-plugin-babel-macros: ^1.0.6
peerDependencies:
vite: ^3 || ^4 || ^5.0.9 || ^6 || ^7
vite: ^3 || ^4 || ^5.0.9 || ^6 || ^7 || ^8
languageName: unknown
linkType: soft

Expand Down
Loading