|
|
a9a27b86bb
|
fix(package): emit CJS as .cjs, add exports map, expose control classes in bundles
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
- type:module + CJS .js main broke import/require in Node; main now dist/testdrive-jsui.cjs
- exports map: types, import->esm, require->cjs, browser->min, ./style.css, ./dist/*
- dist bundles failed on load (ControlBase is not defined): bundler shims module, so the
window.X else-branch never ran; controls now always set window globals
- npm pkg fix applied (repository url normalised)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Assistant: claude-code
Assistant-Model: sonnet
Assistant-Process: 299063@bnt-lap001
Assistant-Session: 53eb1e1c-c13a-4277-9ce2-3702960d93f7
|
2026-10-02 22:44:04 +02:00 |
|
|
|
a7856f4b20
|
build: implement bundling system with Rollup
Phase 1-3 Complete:
- ✅ Installed Rollup with all required plugins
- ✅ Created rollup.config.js for UMD, ESM, CJS builds
- ✅ Created src/index.js entry point
- ✅ Created src/styles.css for CSS bundling
- ✅ Added ES6 exports to debug-system.js
- ✅ Excluded Node.js-only html-generator.js from bundle
Build outputs:
- dist/testdrive-jsui.js (217KB UMD)
- dist/testdrive-jsui.min.js (107KB minified!)
- dist/testdrive-jsui.esm.js (199KB ES Module)
- dist/testdrive-jsui.cjs.js (199KB CommonJS)
- dist/testdrive-jsui.css (minified, all styles inlined)
All builds include source maps for debugging.
|
2025-12-16 22:42:37 +01:00 |
|