✏️ 编辑:SystemRuntimeModule.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/webpack/lib/dependencies/SystemRuntimeModule.js
大小:698 B · 修改:2022-11-21 20:12:50 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Florent Cailhol @ooflorent */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const RuntimeModule = require("../RuntimeModule"); const Template = require("../Template"); class SystemRuntimeModule extends RuntimeModule { constructor() { super("system"); } /** * @returns {string} runtime code */ generate() { return Template.asString([ `${RuntimeGlobals.system} = {`, Template.indent([ "import: function () {", Template.indent( "throw new Error('System.import cannot be used indirectly');" ), "}" ]), "};" ]); } } module.exports = SystemRuntimeModule;
💾 保存
取消
保存为 UTF-8,换行统一为 LF