This commit is contained in:
Alex Yang
2026-03-30 01:04:46 +08:00
parent 050aa421b1
commit f627244b8f
5978 changed files with 1502187 additions and 2947 deletions
+18
View File
@@ -0,0 +1,18 @@
"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;