Skip to content

Add pure barrel tree-shaking docs#1572

Draft
RaananW wants to merge 2 commits intoBabylonJS:masterfrom
RaananW:docs/pure-barrel-tree-shaking
Draft

Add pure barrel tree-shaking docs#1572
RaananW wants to merge 2 commits intoBabylonJS:masterfrom
RaananW:docs/pure-barrel-tree-shaking

Conversation

@RaananW
Copy link
Copy Markdown
Member

@RaananW RaananW commented May 7, 2026

Summary

  • Add a new ES6/NPM Support child section for tree-shaking with pure imports
  • Document the pure barrel workflow, explicit side-effect registration, troubleshooting, and contributor patterns
  • Include complete pure-import examples for an animated glTF scene, Physics V2 with Havok, and WebXR

Validation

  • Parsed configuration/structure.json
  • Ran git diff --check
  • Checked VS Code diagnostics for the new tree-shaking docs pages

Notes

  • CheckMissingImports is documented with its direct diagnostic import path because it is not exported from @babylonjs/core/pure.
  • Earlier full npm run build completed successfully during prep, with existing static generation warnings/timeouts that did not fail the build.

@bjsplat
Copy link
Copy Markdown

bjsplat commented May 7, 2026

snapshot for this PR available at:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/DOCS/refs/pull/1572/merge

@bjsplat
Copy link
Copy Markdown

bjsplat commented May 7, 2026

snapshot for this PR available at:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/DOCS/refs/pull/1572/merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants