File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 143143 "tsdown" : " ^0.16.5" ,
144144 "tsx" : " ^4.19.2" ,
145145 "typescript" : " ^5.9.3" ,
146- "unplugin" : " ^2.3.10 " ,
146+ "unplugin" : " ^2.3.11 " ,
147147 "vitest" : " ^4.0.13"
148148 },
149149 "dependencies" : {
Original file line number Diff line number Diff line change @@ -136,6 +136,15 @@ export const lingoUnplugin = createUnplugin<
136136 enforce : "pre" , // Run before other plugins (especially before React plugin)
137137
138138 vite : {
139+ // Vite handles deep merge
140+ config ( ) {
141+ // Required for custom virtual like modules to be resolved; otherwise they are bundled with raw source code.
142+ return {
143+ optimizeDeps : {
144+ exclude : [ "@lingo.dev/compiler" ] ,
145+ } ,
146+ } ;
147+ } ,
139148 async buildStart ( ) {
140149 const metadataFilePath = getMetadataPath ( ) ;
141150
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ export default defineConfig({
2929 viteReact ( ) ,
3030 tailwindcss ( ) ,
3131 ] ,
32- optimizeDeps : {
33- exclude : [ "@lingo.dev/compiler" ] ,
34- } ,
3532 resolve : {
3633 alias : {
3734 "@" : fileURLToPath ( new URL ( "./src" , import . meta. url ) ) ,
You can’t perform that action at this time.
0 commit comments