Commit bc096e3
committed
fix(ns-openapi-3-0): correct sideEffects path to refractor/inspect
The sideEffects field still pointed at src/refractor/registration.mjs
and .cjs, which were renamed to inspect.mjs/.cjs. Every other namespace
package was migrated at the time of the rename; this one was missed.
src/index.ts re-exports the element classes from refractor/inspect.ts,
which installs the static fixedFields getters via Object.defineProperty
before re-exporting. Marking that module side-effect-free lets bundlers
rewire the re-export straight to src/elements/*, so inspect is never
evaluated and the getters are never installed.
Downstream this surfaces at module load: apidom-reference builds its
Components field maps from fixedFields(ComponentsElement, { indexed:
true }) at module scope, which yields {} in a bundled build and throws
a TypeError on the first field lookup.
Signed-off-by: frantuma <frantuma@yahoo.com>1 parent dc483cc commit bc096e3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments