Skip to content

docs: clarify JavaScript inclusion for WebAssembly - #24243

Merged
MartinZikmund merged 1 commit into
unoplatform:masterfrom
SergioAlmeida29:opencode/issue-22268
Nov 6, 2026
Merged

MartinZikmund merged 1 commit into
unoplatform:masterfrom
SergioAlmeida29:opencode/issue-22268

Conversation

@SergioAlmeida29

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #22268

PR Type:

📚 Documentation content changes

What changed? 🚀

Clarified arbitrary JavaScript inclusion, current EmbeddedResource usage, npm dependency bundling, and links to existing CDN, runtime, and Uno.Sdk documentation. Removed stale automatic resource entries from the Prism example.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (not applicable to documentation)
  • 📚 Docs have been updated following the documentation conventions
  • 🖼️ Validated PR Screenshots Compare Test Run results (not applicable)
  • ❗ Contains NO breaking changes

Testing 🧪

  • Markdownlint passed
  • cSpell passed
  • git diff --check passed
  • Documentation-only; runtime and screenshot tests are not applicable

Disclosure

No functional or breaking changes.

Copilot AI lite review requested due to automatic review settings August 27, 2026 15:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@unodevops

Copy link
Copy Markdown
Contributor

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed d3a5c71e8919 against the SDK targets and bootstrapper implementation.

Uno.SingleProject.Wasm.targets automatically includes AppManifest.js and Fonts.css, not arbitrary sibling files. The explicit EmbeddedResource guidance is therefore appropriate. In the referenced bootstrapper implementation, ExtractAdditionalJS/ExtractAdditionalCSS enumerate the supplied embedded resources, publish files from WasmScripts/WasmCSS and add the JavaScript dependencies/CSS links; this is not an npm dependency resolver.

The Prism change retains explicit prism.js/prism.css entries while removing the redundant default-resource entries. The older .Wasm-project layout still used by that walkthrough is a separate modernization opportunity, not a functional blocker to this correction.

Validation scope: documentation and exact SDK/pinned bootstrapper source comparison; no new browser deployment or complete DocFX build was performed.

@MartinZikmund
MartinZikmund merged commit f31ea27 into unoplatform:master Nov 6, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WASM] Explain how to reference arbitrary .js scripts

5 participants