-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This cl: * Bundles lit into 1 file to export. This allows web ui to get full lit functionality after 1 HTTP request instead of needing to perform a dozen or more HTTP requests to fetch the full dependency tree. * Moves all lit files into ui/webui/resources/preprocessed/mwc so that optimize_webui will, by default, handle chrome://resource imports for lit files. * Deletes files_webui_bundle as optimize_webui will now correctly handle lit without needing adjustments. * Updates rewrite_imports to accept regex so we can remap any directive import with a single line. We also update our reproduce.sh script to no longer generate the BUILD file for third_party/material_web_components. Instead just output all discovered type definitions for a engineer to manually update. Bug: b/229804752 Change-Id: I3c908244e724f31eb86eba98a444b8bc31156b28 Cq-Include-Trybots: luci.chromium.try:linux-chromeos-rel;luci.chrome.try:linux-chromeos-chrome Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4113089 Reviewed-by: Wenbo Jie <wenbojie@chromium.org> Commit-Queue: Zain Afzal <zafzal@google.com> Reviewed-by: Giovanni Ortuno Urquidi <ortuno@chromium.org> Cr-Commit-Position: refs/heads/main@{#1099099}
- Loading branch information
Zain Afzal
authored and
Chromium LUCI CQ
committed
Jan 31, 2023
1 parent
14ec85e
commit 8e8c6a9
Showing
16 changed files
with
102 additions
and
1,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
third_party/material_web_components/components-chromium/node_modules/.package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** Simple file to export all lit resources we care about for easy bundling. */ | ||
|
||
export * from "./components-chromium/node_modules/lit/index.js"; | ||
export * from "./components-chromium/node_modules/lit/decorators.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/async-append.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/async-replace.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/cache.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/choose.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/class-map.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/guard.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/if-defined.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/join.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/keyed.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/live.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/map.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/range.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/ref.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/repeat.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/style-map.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/template-content.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/unsafe-html.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/unsafe-svg.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/until.js"; | ||
export * from "./components-chromium/node_modules/lit/directives/when.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.