- Integrated externalResolvePlugin in the build process for spec-main.js and karma-main.js to handle imports from @cesium/* packages.
- Ensured that the plugin is also applied when bundling the main spec list file.
Merge upstream/core-math branch to introduce @cesium/core-utils package
and update all imports to use the new package structure.
Changes:
- Add @cesium/core-utils package with utility types:
Check, defined, DeveloperError, Frozen, RuntimeError
- Update @cesium/core-math to depend on @cesium/core-utils
- Migrate 775 files in engine package to import from @cesium/core-utils
- Update build.js to re-export core-utils types in engine and Cesium bundles
- Fix Source/index.js exports in both packages to use named exports
Test results:
- core-math: 1112 tests passed
- engine: 14614 tests passed
This completes Track 1.5 (core-utils merge) of Project Buildology.
Update build infrastructure to support the new @cesium/core-math package
as a workspace dependency of @cesium/engine.
Build system changes (scripts/build.js):
- Add core-math re-exports to engine's generated index.js
- Add core-math exports to Source/Cesium.js for test bundling
- Add buildCoreMath function for workspace-specific builds
Engine integration:
- Add @cesium/core-math as workspace dependency
- Migrate 350+ import statements from relative paths to @cesium/core-math
- Update test specs to import engine types (Quaternion, HeadingPitchRoll)
Migration tooling:
- Add scripts/migrate-core-math-imports.js for automated import updates
Gulpfile updates for workspace-aware build tasks.