webpack/test/configCases/externals/externals-system-custom/test.config.js

18 lines
335 B
JavaScript
Raw Normal View History

const System = require("../../../helpers/fakeSystem");
module.exports = {
2023-04-13 02:09:24 +08:00
target: "web",
beforeExecute: () => {
System.init();
},
moduleScope(scope) {
2023-04-13 02:09:24 +08:00
scope.window.windowExt = "works";
scope.rootExt = "works";
scope.varExt = "works";
scope.System = System;
},
afterExecute: () => {
System.execute("(anonym)");
}
};