Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 39 additions & 20 deletions rescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"WebAPI.Animation": ["WebAPI.Event", "Animation"],
"WebAPI.Geometry": ["WebAPI.DOM", "Geometry"],
"WebAPI.CSSOM": ["WebAPI.Event", "CSSOM"],
"WebAPI.DOMNodes": [
"WebAPI.DOMPlatform",
"WebAPI.Animation",
"WebAPI.CSSOM",
"WebAPI.Geometry",
"DOMNodes"
],
"WebAPI.File": ["WebAPI.Event", "File"],
"WebAPI.URL": ["WebAPI.DOM", "URL"],
"WebAPI.Fetch": ["WebAPI.Event", "WebAPI.File", "WebAPI.URL", "Fetch"],
Expand Down Expand Up @@ -38,6 +45,38 @@
"DOMTokenList"
]
},
{
"dir": "src/dom-nodes",
"subdirs": true,
"feature": "DOMNodes",
Comment on lines +49 to +51

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve DOMNodes in the WebAPI.DOM feature closure

When a consumer enables WebAPI.DOM—or another feature such as WebAPI.Event that depends on it—the feature closure still contains only DOM, while the selected src/DOM sources continue to import modules moved behind DOMNodes (for example, Document.res imports Node, DOMTree, HTMLCollection, Range, and Selection). Those selective builds can therefore no longer resolve the moved modules; the split needs to preserve these dependencies in the existing feature closure or wait until the remaining DOM consumers move as well.

Useful? React with 👍 / 👎.

"public": [
"AbstractRange",
Comment on lines +52 to +53

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Register the new source directory with the docs generator

Running npm run build:docs invokes prebuild:docs, whose docs/llm.js looks up every public source directory in scripts/unmonorepo/feature-spec.mjs and throws Unsupported source directory when no matching dirName exists. That table has DOM but no dom-nodes, so encountering any of these newly public files makes the documentation build fail; add metadata for this directory or make the generator derive it from rescript.json.

Useful? React with 👍 / 👎.

"Attr",
"CaretPosition",
"CDATASection",
"CharacterData",
"Comment",
"DOMImplementation",
"DOMTree",
"DocumentFragment",
"Element",
"ElementInternals",
"HTML",
"HTMLCollection",
"NamedNodeMap",
"Node",
"NodeFilter",
"NodeIterator",
"NodeList",
"ProcessingInstruction",
"Range",
"Selection",
"ShadowRoot",
"StaticRange",
"Text",
"TreeWalker"
]
},
{
"dir": "src/animation",
"subdirs": true,
Expand Down Expand Up @@ -144,31 +183,21 @@
"subdirs": true,
"feature": "WebAPI.DOM",
"public": [
"CaretPosition",
"CharacterData",
"Comment",
"CustomElementRegistry",
"DOMImplementation",
"DOMTree",
"Document",
"DocumentFragment",
"DomHTMLMediaElement",
"Element",
"ElementInternals",
"HTMLAnchorElement",
"HTMLAreaElement",
"HTMLAudioElement",
"HTMLBRElement",
"HTMLBaseElement",
"HTMLBodyElement",
"HTMLButtonElement",
"HTMLCollection",
"HTMLDListElement",
"HTMLDataElement",
"HTMLDataListElement",
"HTMLDialogElement",
"HTMLDivElement",
"HTML",
"HTMLElement",
"HTMLEmbedElement",
"HTMLFieldSetElement",
Expand Down Expand Up @@ -223,23 +252,13 @@
"IdleDeadline",
"ImageData",
"Location",
"NamedNodeMap",
"Navigator",
"Node",
"NodeFilter",
"NodeIterator",
"NodeList",
"Range",
"SVGElement",
"SVGGraphicsElement",
"SVGLength",
"ScreenOrientation",
"Selection",
"ShadowRoot",
"Text",
"TextTrackList",
"TimeRanges",
"TreeWalker",
"VideoColorSpace",
"Window",
"XPathExpression",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.