Skip to content

Readd UMD package builds and dist-based exports - #356

Merged
waynemwashuma merged 6 commits into
wimaengine:devfrom
waynemwashuma:build-step
Jul 25, 2026
Merged

Readd UMD package builds and dist-based exports#356
waynemwashuma merged 6 commits into
wimaengine:devfrom
waynemwashuma:build-step

Conversation

@waynemwashuma

Copy link
Copy Markdown
Collaborator

Objective

Introduce UMD build outputs for Wima packages so they can be consumed through both ESM import and CommonJS-style require entrypoints from generated dist files.

Solution

  • Updated the shared Vite config to build both es and umd formats.
  • Added package-level UMD global names generated from package names, such as @wimaengine/core to WIMAENGINE_CORE.
  • Updated root and package package.json files to point main and exports.require to ./dist/index.umd.js.
  • Updated exports.import to use ./dist/index.module.js.
  • Changed published package files from source entry files to dist.
  • Added comment stripping for generated JavaScript chunks and import-only JSDoc comments in declaration bundles.
  • Expanded clean:build so package dist folders are removed during cleanup.

Showcase

N/A

Migration guide

No migration required

Checklist

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@waynemwashuma waynemwashuma self-assigned this Jul 24, 2026
@github-actions github-actions Bot added scope:config mod:ecs mod:app mod:command mod:input mod:math mod:render mod:misc mod:event mod:window mod:physics mod:asset mod:transform mod:movable mod:device mod:audio mod:tween This PR/issue affects the `tween` package mod:logger This PR/issue affect logger package mod:reflect mod:hierarchy mod:gizmos Affects the gizmos package. mod:color This affects the color package mod:animation This PR/issue affects the animation system mod:datastructure This PR/issue affects datastructure package labels Jul 24, 2026
@github-actions github-actions Bot added mod:relationship This PR/issue involves relationship package mod:time This PR/issue affect the time package mod:schedule This PR/issue affects the schedule module mod:diagnostic This issue/PR affects the diagnostic module mod:noise This PR/issue affects noise package mod:geometry This PR/issue affects geometry package mod:scene This affects the scene package mod:type mod:emitter This PR/issue affects emitter package mod:core mod:name mod:profiler mod:storage mod:utils type:ci labels Jul 24, 2026
@waynemwashuma
waynemwashuma force-pushed the build-step branch 2 times, most recently from ff9380f to 941a120 Compare July 24, 2026 17:13
@waynemwashuma
waynemwashuma force-pushed the build-step branch 2 times, most recently from 9af3cf9 to da664fa Compare July 24, 2026 17:27
@waynemwashuma
waynemwashuma merged commit 2f91d14 into wimaengine:dev Jul 25, 2026
7 checks passed
@waynemwashuma
waynemwashuma deleted the build-step branch July 25, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:animation This PR/issue affects the animation system mod:app mod:asset mod:audio mod:color This affects the color package mod:command mod:core mod:datastructure This PR/issue affects datastructure package mod:device mod:diagnostic This issue/PR affects the diagnostic module mod:ecs mod:emitter This PR/issue affects emitter package mod:event mod:geometry This PR/issue affects geometry package mod:gizmos Affects the gizmos package. mod:hierarchy mod:input mod:logger This PR/issue affect logger package mod:math mod:misc mod:movable mod:name mod:noise This PR/issue affects noise package mod:physics mod:profiler mod:reflect mod:relationship This PR/issue involves relationship package mod:render mod:scene This affects the scene package mod:schedule This PR/issue affects the schedule module mod:storage mod:time This PR/issue affect the time package mod:transform mod:tween This PR/issue affects the `tween` package mod:type mod:utils mod:window scope:config type:change type:ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant