Skip to content

Commit bc096e3

Browse files
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

File tree

packages/apidom-ns-openapi-3-0/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
},
2323
"type": "module",
2424
"sideEffects": [
25-
"./src/refractor/registration.mjs",
26-
"./src/refractor/registration.cjs"
25+
"./src/refractor/inspect.mjs",
26+
"./src/refractor/inspect.cjs"
2727
],
2828
"unpkg": "./dist/apidom-ns-openapi-3-0.browser.min.js",
2929
"main": "./src/index.cjs",

0 commit comments

Comments
 (0)