RuntimeGlobals.js 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. /**
  7. * the internal require function
  8. */
  9. module.exports.require = "__webpack_require__";
  10. /**
  11. * access to properties of the internal require function/object
  12. */
  13. module.exports.requireScope = "__webpack_require__.*";
  14. /**
  15. * the internal exports object
  16. */
  17. module.exports.exports = "__webpack_exports__";
  18. /**
  19. * top-level this need to be the exports object
  20. */
  21. module.exports.thisAsExports = "top-level-this-exports";
  22. /**
  23. * runtime need to return the exports of the last entry module
  24. */
  25. module.exports.returnExportsFromRuntime = "return-exports-from-runtime";
  26. /**
  27. * the internal module object
  28. */
  29. module.exports.module = "module";
  30. /**
  31. * the internal module object
  32. */
  33. module.exports.moduleId = "module.id";
  34. /**
  35. * the internal module object
  36. */
  37. module.exports.moduleLoaded = "module.loaded";
  38. /**
  39. * the bundle public path
  40. */
  41. module.exports.publicPath = "__webpack_require__.p";
  42. /**
  43. * the module id of the entry point
  44. */
  45. module.exports.entryModuleId = "__webpack_require__.s";
  46. /**
  47. * the module cache
  48. */
  49. module.exports.moduleCache = "__webpack_require__.c";
  50. /**
  51. * the module functions
  52. */
  53. module.exports.moduleFactories = "__webpack_require__.m";
  54. /**
  55. * the module functions, with only write access
  56. */
  57. module.exports.moduleFactoriesAddOnly = "__webpack_require__.m (add only)";
  58. /**
  59. * the chunk ensure function
  60. */
  61. module.exports.ensureChunk = "__webpack_require__.e";
  62. /**
  63. * an object with handlers to ensure a chunk
  64. */
  65. module.exports.ensureChunkHandlers = "__webpack_require__.f";
  66. /**
  67. * a runtime requirement if ensureChunkHandlers should include loading of chunk needed for entries
  68. */
  69. module.exports.ensureChunkIncludeEntries =
  70. "__webpack_require__.f (include entries)";
  71. /**
  72. * the chunk prefetch function
  73. */
  74. module.exports.prefetchChunk = "__webpack_require__.E";
  75. /**
  76. * an object with handlers to prefetch a chunk
  77. */
  78. module.exports.prefetchChunkHandlers = "__webpack_require__.F";
  79. /**
  80. * the chunk preload function
  81. */
  82. module.exports.preloadChunk = "__webpack_require__.G";
  83. /**
  84. * an object with handlers to preload a chunk
  85. */
  86. module.exports.preloadChunkHandlers = "__webpack_require__.H";
  87. /**
  88. * the exported property define getters function
  89. */
  90. module.exports.definePropertyGetters = "__webpack_require__.d";
  91. /**
  92. * define compatibility on export
  93. */
  94. module.exports.makeNamespaceObject = "__webpack_require__.r";
  95. /**
  96. * create a fake namespace object
  97. */
  98. module.exports.createFakeNamespaceObject = "__webpack_require__.t";
  99. /**
  100. * compatibility get default export
  101. */
  102. module.exports.compatGetDefaultExport = "__webpack_require__.n";
  103. /**
  104. * harmony module decorator
  105. */
  106. module.exports.harmonyModuleDecorator = "__webpack_require__.hmd";
  107. /**
  108. * node.js module decorator
  109. */
  110. module.exports.nodeModuleDecorator = "__webpack_require__.nmd";
  111. /**
  112. * the webpack hash
  113. */
  114. module.exports.getFullHash = "__webpack_require__.h";
  115. /**
  116. * an object containing all installed WebAssembly.Instance export objects keyed by module id
  117. */
  118. module.exports.wasmInstances = "__webpack_require__.w";
  119. /**
  120. * instantiate a wasm instance from module exports object, id, hash and importsObject
  121. */
  122. module.exports.instantiateWasm = "__webpack_require__.v";
  123. /**
  124. * the uncaught error handler for the webpack runtime
  125. */
  126. module.exports.uncaughtErrorHandler = "__webpack_require__.oe";
  127. /**
  128. * the script nonce
  129. */
  130. module.exports.scriptNonce = "__webpack_require__.nc";
  131. /**
  132. * function to load a script tag.
  133. * Arguments: (url: string, done: (event) => void), key?: string | number, chunkId?: string | number) => void
  134. * done function is called when loading has finished or timeout occurred.
  135. * It will attach to existing script tags with data-webpack == uniqueName + ":" + key or src == url.
  136. */
  137. module.exports.loadScript = "__webpack_require__.l";
  138. /**
  139. * function to promote a string to a TrustedScript using webpack's Trusted
  140. * Types policy
  141. * Arguments: (script: string) => TrustedScript
  142. */
  143. module.exports.createScript = "__webpack_require__.ts";
  144. /**
  145. * function to promote a string to a TrustedScriptURL using webpack's Trusted
  146. * Types policy
  147. * Arguments: (url: string) => TrustedScriptURL
  148. */
  149. module.exports.createScriptUrl = "__webpack_require__.tu";
  150. /**
  151. * function to return webpack's Trusted Types policy
  152. * Arguments: () => TrustedTypePolicy
  153. */
  154. module.exports.getTrustedTypesPolicy = "__webpack_require__.tt";
  155. /**
  156. * a flag when a chunk has a fetch priority
  157. */
  158. module.exports.hasFetchPriority = "has fetch priority";
  159. /**
  160. * the chunk name of the chunk with the runtime
  161. */
  162. module.exports.chunkName = "__webpack_require__.cn";
  163. /**
  164. * the runtime id of the current runtime
  165. */
  166. module.exports.runtimeId = "__webpack_require__.j";
  167. /**
  168. * the filename of the script part of the chunk
  169. */
  170. module.exports.getChunkScriptFilename = "__webpack_require__.u";
  171. /**
  172. * the filename of the css part of the chunk
  173. */
  174. module.exports.getChunkCssFilename = "__webpack_require__.k";
  175. /**
  176. * a flag when a module/chunk/tree has css modules
  177. */
  178. module.exports.hasCssModules = "has css modules";
  179. /**
  180. * the filename of the script part of the hot update chunk
  181. */
  182. module.exports.getChunkUpdateScriptFilename = "__webpack_require__.hu";
  183. /**
  184. * the filename of the css part of the hot update chunk
  185. */
  186. module.exports.getChunkUpdateCssFilename = "__webpack_require__.hk";
  187. /**
  188. * startup signal from runtime
  189. * This will be called when the runtime chunk has been loaded.
  190. */
  191. module.exports.startup = "__webpack_require__.x";
  192. /**
  193. * @deprecated
  194. * creating a default startup function with the entry modules
  195. */
  196. module.exports.startupNoDefault = "__webpack_require__.x (no default handler)";
  197. /**
  198. * startup signal from runtime but only used to add logic after the startup
  199. */
  200. module.exports.startupOnlyAfter = "__webpack_require__.x (only after)";
  201. /**
  202. * startup signal from runtime but only used to add sync logic before the startup
  203. */
  204. module.exports.startupOnlyBefore = "__webpack_require__.x (only before)";
  205. /**
  206. * global callback functions for installing chunks
  207. */
  208. module.exports.chunkCallback = "webpackChunk";
  209. /**
  210. * method to startup an entrypoint with needed chunks.
  211. * Signature: (moduleId: Id, chunkIds: Id[]) => any.
  212. * Returns the exports of the module or a Promise
  213. */
  214. module.exports.startupEntrypoint = "__webpack_require__.X";
  215. /**
  216. * register deferred code, which will run when certain
  217. * chunks are loaded.
  218. * Signature: (chunkIds: Id[], fn: () => any, priority: int >= 0 = 0) => any
  219. * Returned value will be returned directly when all chunks are already loaded
  220. * When (priority & 1) it will wait for all other handlers with lower priority to
  221. * be executed before itself is executed
  222. */
  223. module.exports.onChunksLoaded = "__webpack_require__.O";
  224. /**
  225. * method to install a chunk that was loaded somehow
  226. * Signature: ({ id, ids, modules, runtime }) => void
  227. */
  228. module.exports.externalInstallChunk = "__webpack_require__.C";
  229. /**
  230. * interceptor for module executions
  231. */
  232. module.exports.interceptModuleExecution = "__webpack_require__.i";
  233. /**
  234. * the global object
  235. */
  236. module.exports.global = "__webpack_require__.g";
  237. /**
  238. * an object with all share scopes
  239. */
  240. module.exports.shareScopeMap = "__webpack_require__.S";
  241. /**
  242. * The sharing init sequence function (only runs once per share scope).
  243. * Has one argument, the name of the share scope.
  244. * Creates a share scope if not existing
  245. */
  246. module.exports.initializeSharing = "__webpack_require__.I";
  247. /**
  248. * The current scope when getting a module from a remote
  249. */
  250. module.exports.currentRemoteGetScope = "__webpack_require__.R";
  251. /**
  252. * the filename of the HMR manifest
  253. */
  254. module.exports.getUpdateManifestFilename = "__webpack_require__.hmrF";
  255. /**
  256. * function downloading the update manifest
  257. */
  258. module.exports.hmrDownloadManifest = "__webpack_require__.hmrM";
  259. /**
  260. * array with handler functions to download chunk updates
  261. */
  262. module.exports.hmrDownloadUpdateHandlers = "__webpack_require__.hmrC";
  263. /**
  264. * object with all hmr module data for all modules
  265. */
  266. module.exports.hmrModuleData = "__webpack_require__.hmrD";
  267. /**
  268. * array with handler functions when a module should be invalidated
  269. */
  270. module.exports.hmrInvalidateModuleHandlers = "__webpack_require__.hmrI";
  271. /**
  272. * the prefix for storing state of runtime modules when hmr is enabled
  273. */
  274. module.exports.hmrRuntimeStatePrefix = "__webpack_require__.hmrS";
  275. /**
  276. * the AMD define function
  277. */
  278. module.exports.amdDefine = "__webpack_require__.amdD";
  279. /**
  280. * the AMD options
  281. */
  282. module.exports.amdOptions = "__webpack_require__.amdO";
  283. /**
  284. * the System polyfill object
  285. */
  286. module.exports.system = "__webpack_require__.System";
  287. /**
  288. * the shorthand for Object.prototype.hasOwnProperty
  289. * using of it decreases the compiled bundle size
  290. */
  291. module.exports.hasOwnProperty = "__webpack_require__.o";
  292. /**
  293. * the System.register context object
  294. */
  295. module.exports.systemContext = "__webpack_require__.y";
  296. /**
  297. * the baseURI of current document
  298. */
  299. module.exports.baseURI = "__webpack_require__.b";
  300. /**
  301. * a RelativeURL class when relative URLs are used
  302. */
  303. module.exports.relativeUrl = "__webpack_require__.U";
  304. /**
  305. * Creates an async module. The body function must be a async function.
  306. * "module.exports" will be decorated with an AsyncModulePromise.
  307. * The body function will be called.
  308. * To handle async dependencies correctly do this: "([a, b, c] = await handleDependencies([a, b, c]));".
  309. * If "hasAwaitAfterDependencies" is truthy, "handleDependencies()" must be called at the end of the body function.
  310. * Signature: function(
  311. * module: Module,
  312. * body: (handleDependencies: (deps: AsyncModulePromise[]) => Promise<any[]> & () => void,
  313. * hasAwaitAfterDependencies?: boolean
  314. * ) => void
  315. */
  316. module.exports.asyncModule = "__webpack_require__.a";