-
Notifications
You must be signed in to change notification settings - Fork 12
refactor: establish DOMNodes folder feature #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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"], | ||
|
|
@@ -38,6 +45,38 @@ | |
| "DOMTokenList" | ||
| ] | ||
| }, | ||
| { | ||
| "dir": "src/dom-nodes", | ||
| "subdirs": true, | ||
| "feature": "DOMNodes", | ||
| "public": [ | ||
| "AbstractRange", | ||
|
Comment on lines
+52
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Running 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, | ||
|
|
@@ -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", | ||
|
|
@@ -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", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a consumer enables
WebAPI.DOM—or another feature such asWebAPI.Eventthat depends on it—the feature closure still contains onlyDOM, while the selectedsrc/DOMsources continue to import modules moved behindDOMNodes(for example,Document.resimportsNode,DOMTree,HTMLCollection,Range, andSelection). 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 👍 / 👎.