fix(package): emit CJS as .cjs, add exports map, expose control classes in bundles
- 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
This commit is contained in:
parent
f17363c491
commit
a9a27b86bb
8 changed files with 43 additions and 11 deletions
|
|
@ -5,7 +5,7 @@ Verified as part of JSUI-WP-0002 (2026-07-08).
|
|||
## Build outputs
|
||||
|
||||
- [x] `npm run build` / `npm run build:prod` produces `dist/` bundles
|
||||
- [x] `dist/testdrive-jsui.cjs.js` — CommonJS entry (`package.json` `main`)
|
||||
- [x] `dist/testdrive-jsui.cjs` — CommonJS entry (`package.json` `main`)
|
||||
- [x] `dist/testdrive-jsui.esm.js` — ESM entry (`module`)
|
||||
- [x] `dist/testdrive-jsui.min.js` — UMD/browser (`browser`, `unpkg`, `jsdelivr`)
|
||||
- [x] `dist/testdrive-jsui.css` — packaged styles (`style` field)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue