fix: add website/sections exports to package.json#19
Merged
JonasJesus42 merged 3 commits intomainfrom Apr 13, 2026
Merged
Conversation
Vite requires subpath exports to be declared explicitly.
Without these entries, `import("@decocms/apps/website/sections/Seo/SeoV2")`
fails with "Missing specifier" during dependency scanning.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- website/client.ts: Use globalThis.__decoWebsiteConfig instead of module-level variable to survive Vite module duplication (optimized deps vs raw source imports create separate module instances). - SeoV2.tsx: Fall back to getWebsiteConfig() singleton when the seo argument is not provided, enabling standalone use from the asJson handler without requiring the full app resolution pipeline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🎉 This PR is included in version 1.3.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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.
Summary
./website/sections/*and./website/sections/Seo/*subpath exports to package.jsonMissing "./website/sections/Seo/SeoV2" specifier in "@decocms/apps" packagewhen sites import section loadersContext
The website app was merged in #17 but sections subpath exports were missing. Sites that register the SeoV2 loader (for
?asJsonSEO resolution) need toimport("@decocms/apps/website/sections/Seo/SeoV2").Test plan
import("@decocms/apps/website/sections/Seo/SeoV2")without Vite errorsnpm run devstarts successfully🤖 Generated with Claude Code
Summary by cubic
Added subpath exports for
./website/sections/*and./website/sections/Seo/*inpackage.jsonto fix Vite “Missing specifier” errors when importing section loaders from@decocms/apps. Switched website config to aglobalThis.__decoWebsiteConfigsingleton and updatedSeoV2to fall back to it whenseoisn’t provided, so standalone imports like@decocms/apps/website/sections/Seo/SeoV2(e.g.,?asJson) work even with Vite module duplication; also applied Biome import-order/formatting fixes.Written for commit 555da88. Summary will update on new commits.