/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
third_party/webcomponentsjs/README.amp
21 строка
1 KB
Alan Orozco
♻️🚀 Dead-code-eliminate `ShadowCSS.js` (#38013)
14 апр 2022, 18:27
Не верифицирован
14 апр 2022, 18:27
9c7ad17
Код
Авторство
О чём код?
URL: https://github.com/webcomponents/webcomponentsjs License: BSD License File: https://github.com/webcomponents/webcomponentsjs/blob/master/LICENSE.md Description: Shadow DOM-related polyfills Local Modifications: - Stripped to only perform necessary Shadow CSS polyfilling. - Shortened License based on intended functionality from build pipeline. - Added feature switches that allows certain codepaths to be dead-code-eliminated: `allowArraySelectors` and `isIeSupported` - All exported functions were originally part of an object named `ShadowCSS`. We instead export them as plain functions allow them to be dead-code-eliminated, and for their names to be mangled. This also involves changing references to each function from `this.x()` to just `x()` - Renamed `scopeSelector()` to `doScopeSelector()` since the original name conflicts with argument `scopeSelector` after removing `this.`. - Removed a `strict` argument before `opt_transformer` in `doScopeSelector` to be replaced with the constant value for `strictStyling`.