retypeset-odyssey 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/integration.ts +9 -0
- package/package.json +1 -1
package/integration.ts
CHANGED
|
@@ -363,6 +363,15 @@ export const dynamicCollections = ${JSON.stringify(dynamicFolders)}
|
|
|
363
363
|
return virtualConfigCode
|
|
364
364
|
if (id === RESOLVED_DYNAMIC_VIRTUAL_ID)
|
|
365
365
|
return dynamicCollectionsCode
|
|
366
|
+
// Astro 6 / Vite 7's built-in alias plugin (also
|
|
367
|
+
// `enforce: 'pre'`) rewrites `@/config` to the absolute
|
|
368
|
+
// path of the standalone fallback before our resolveId
|
|
369
|
+
// sees the unresolved specifier. Intercept the load by
|
|
370
|
+
// file path too so the consumer-merged config always wins
|
|
371
|
+
// over the inline TS defaults in src/config.ts.
|
|
372
|
+
const configFile = themePath('./src/config.ts')
|
|
373
|
+
if (id === configFile || id.startsWith(`${configFile}?`))
|
|
374
|
+
return virtualConfigCode
|
|
366
375
|
return null
|
|
367
376
|
},
|
|
368
377
|
},
|