From d5f14083061f2ce6a42313188443a42e30796320 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 31 Oct 2023 15:37:35 +0800 Subject: added make browserlist(autoprefixer) work fixed --- .../lib/runtime/SystemContextRuntimeModule.js | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 node_modules/webpack/lib/runtime/SystemContextRuntimeModule.js (limited to 'node_modules/webpack/lib/runtime/SystemContextRuntimeModule.js') diff --git a/node_modules/webpack/lib/runtime/SystemContextRuntimeModule.js b/node_modules/webpack/lib/runtime/SystemContextRuntimeModule.js new file mode 100644 index 00000000..b7663ffd --- /dev/null +++ b/node_modules/webpack/lib/runtime/SystemContextRuntimeModule.js @@ -0,0 +1,25 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php +*/ + +"use strict"; + +const RuntimeGlobals = require("../RuntimeGlobals"); +const RuntimeModule = require("../RuntimeModule"); + +/** @typedef {import("../Compilation")} Compilation */ + +class SystemContextRuntimeModule extends RuntimeModule { + constructor() { + super("__system_context__"); + } + + /** + * @returns {string | null} runtime code + */ + generate() { + return `${RuntimeGlobals.systemContext} = __system_context__;`; + } +} + +module.exports = SystemContextRuntimeModule; -- cgit v1.2.3