Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
19 lines
504 B
Plaintext
19 lines
504 B
Plaintext
"use strict";
|
|
|
|
/* global __resourceQuery */
|
|
|
|
var isNodeLikeEnv =
|
|
typeof global !== "undefined" && typeof global.process !== "undefined";
|
|
|
|
var handler = isNodeLikeEnv
|
|
? require("./lazy-compilation-node")
|
|
: require("./lazy-compilation-web");
|
|
|
|
handler.setUrl(decodeURIComponent(__resourceQuery.slice(1)));
|
|
|
|
/**
|
|
* @param {{ data: string, onError: (err: Error) => void, active: boolean, module: module }} options options
|
|
* @returns {() => void} function to destroy response
|
|
*/
|
|
module.exports = handler;
|