webpack/test/configCases/library/1-systemjs-external-esm/test.config.js

18 lines
312 B
JavaScript
Raw Normal View History

"use strict";
const System = require("../../../helpers/fakeSystem");
module.exports = {
beforeExecute: () => {
System.init();
},
moduleScope(scope) {
scope.System = System;
scope.System.setRequire(scope.require);
},
afterExecute() {
delete global.webpackChunk;
System.execute("(anonym)");
}
};