Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
35
my-app/node_modules/webpack/lib/dependencies/SystemRuntimeModule.js
generated
vendored
Executable file
35
my-app/node_modules/webpack/lib/dependencies/SystemRuntimeModule.js
generated
vendored
Executable file
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
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 | null} 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;
|
Loading…
Add table
Add a link
Reference in a new issue