MCPcopy Index your code
hub / github.com/ampproject/amphtml / init

Function init

build-system/tasks/css/init-sync.js:11–15  ·  view source on GitHub ↗

* Wrapper for the asynchronous transformCssString that is used by transformCssSync() * in build-system/tasks/css/jsify-css-sync.js. * * @return {function(string, !Object=, !Object=): ReturnType }

()

Source from the content-addressed store, hash-verified

9 * @return {function(string, !Object=, !Object=): ReturnType<transformCssString>}
10 */
11function init() {
12 return function (cssStr, opt_filename) {
13 return Promise.resolve(transformCssString(cssStr, opt_filename));
14 };
15}
16module.exports = init;

Callers

nothing calls this directly

Calls 2

transformCssStringFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected