@rspack-canary/browser 1.6.7-canary-3faa835a-20251204182618 → 1.6.7-canary-5041023c-20251206175847

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,7 +83,7 @@ export interface ExecuteModuleArgument {
83
83
  };
84
84
  }
85
85
  export interface ExecuteModuleContext {
86
- __webpack_require__: (id: string) => any;
86
+ [key: string]: (id: string) => any;
87
87
  }
88
88
  export interface KnownNormalizedStatsOptions {
89
89
  context: string;
@@ -8,217 +8,232 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import type { JsRuntimeGlobals } from "./binding";
11
- export declare function __from_binding_runtime_globals(runtimeRequirements: JsRuntimeGlobals): Set<string>;
12
- export declare function __to_binding_runtime_globals(runtimeRequirements: Set<string>): JsRuntimeGlobals;
13
- export declare const RuntimeGlobals: {
11
+ import type { RspackOptionsNormalized } from "./config";
12
+ export declare function __from_binding_runtime_globals(runtimeRequirements: JsRuntimeGlobals, compilerRuntimeGlobals: Record<string, string>): Set<string>;
13
+ export declare function __to_binding_runtime_globals(runtimeRequirements: Set<string>, compilerRuntimeGlobals: Record<string, string>): JsRuntimeGlobals;
14
+ declare enum RuntimeGlobals {
14
15
  /**
15
16
  * the internal require function
16
17
  */
17
- readonly require: "__webpack_require__";
18
+ require = 0,
18
19
  /**
19
20
  * access to properties of the internal require function/object
20
21
  */
21
- readonly requireScope: "__webpack_require__.*";
22
+ requireScope = 1,
22
23
  /**
23
24
  * the internal exports object
24
25
  */
25
- readonly exports: "__webpack_exports__";
26
+ exports = 2,
26
27
  /**
27
28
  * top-level this need to be the exports object
28
29
  */
29
- readonly thisAsExports: "top-level-this-exports";
30
+ thisAsExports = 3,
30
31
  /**
31
32
  * runtime need to return the exports of the last entry module
32
33
  */
33
- readonly returnExportsFromRuntime: "return-exports-from-runtime";
34
+ returnExportsFromRuntime = 4,
34
35
  /**
35
36
  * the internal module object
36
37
  */
37
- readonly module: "module";
38
+ module = 5,
38
39
  /**
39
40
  * the internal module object
40
41
  */
41
- readonly moduleId: "module.id";
42
+ moduleId = 6,
42
43
  /**
43
44
  * the internal module object
44
45
  */
45
- readonly moduleLoaded: "module.loaded";
46
+ moduleLoaded = 7,
46
47
  /**
47
48
  * the bundle public path
48
49
  */
49
- readonly publicPath: "__webpack_require__.p";
50
+ publicPath = 8,
50
51
  /**
51
52
  * the module id of the entry point
52
53
  */
53
- readonly entryModuleId: "__webpack_require__.s";
54
+ entryModuleId = 9,
54
55
  /**
55
56
  * the module cache
56
57
  */
57
- readonly moduleCache: "__webpack_require__.c";
58
+ moduleCache = 10,
58
59
  /**
59
60
  * the module functions
60
61
  */
61
- readonly moduleFactories: "__webpack_require__.m";
62
+ moduleFactories = 11,
62
63
  /**
63
64
  * the module functions, with only write access
64
65
  */
65
- readonly moduleFactoriesAddOnly: "__webpack_require__.m (add only)";
66
+ moduleFactoriesAddOnly = 12,
66
67
  /**
67
68
  * the chunk ensure function
68
69
  */
69
- readonly ensureChunk: "__webpack_require__.e";
70
+ ensureChunk = 13,
70
71
  /**
71
72
  * an object with handlers to ensure a chunk
72
73
  */
73
- readonly ensureChunkHandlers: "__webpack_require__.f";
74
+ ensureChunkHandlers = 14,
74
75
  /**
75
76
  * a runtime requirement if ensureChunkHandlers should include loading of chunk needed for entries
76
77
  */
77
- readonly ensureChunkIncludeEntries: "__webpack_require__.f (include entries)";
78
+ ensureChunkIncludeEntries = 15,
78
79
  /**
79
80
  * the chunk prefetch function
80
81
  */
81
- readonly prefetchChunk: "__webpack_require__.E";
82
+ prefetchChunk = 16,
82
83
  /**
83
84
  * an object with handlers to prefetch a chunk
84
85
  */
85
- readonly prefetchChunkHandlers: "__webpack_require__.F";
86
+ prefetchChunkHandlers = 17,
86
87
  /**
87
88
  * the chunk preload function
88
89
  */
89
- readonly preloadChunk: "__webpack_require__.G";
90
+ preloadChunk = 18,
90
91
  /**
91
92
  * an object with handlers to preload a chunk
92
93
  */
93
- readonly preloadChunkHandlers: "__webpack_require__.H";
94
+ preloadChunkHandlers = 19,
94
95
  /**
95
96
  * the exported property define getters function
96
97
  */
97
- readonly definePropertyGetters: "__webpack_require__.d";
98
+ definePropertyGetters = 20,
98
99
  /**
99
100
  * define compatibility on export
100
101
  */
101
- readonly makeNamespaceObject: "__webpack_require__.r";
102
+ makeNamespaceObject = 21,
102
103
  /**
103
104
  * create a fake namespace object
104
105
  */
105
- readonly createFakeNamespaceObject: "__webpack_require__.t";
106
+ createFakeNamespaceObject = 22,
106
107
  /**
107
108
  * compatibility get default export
108
109
  */
109
- readonly compatGetDefaultExport: "__webpack_require__.n";
110
+ compatGetDefaultExport = 23,
110
111
  /**
111
112
  * ES modules decorator
112
113
  */
113
- readonly harmonyModuleDecorator: "__webpack_require__.hmd";
114
+ harmonyModuleDecorator = 24,
114
115
  /**
115
116
  * node.js module decorator
116
117
  */
117
- readonly nodeModuleDecorator: "__webpack_require__.nmd";
118
+ nodeModuleDecorator = 25,
118
119
  /**
119
120
  * the webpack hash
120
121
  */
121
- readonly getFullHash: "__webpack_require__.h";
122
+ getFullHash = 26,
122
123
  /**
123
124
  * an object containing all installed WebAssembly.Instance export objects keyed by module id
124
125
  */
125
- readonly wasmInstances: "__webpack_require__.w";
126
+ wasmInstances = 27,
126
127
  /**
127
128
  * instantiate a wasm instance from module exports object, id, hash and importsObject
128
129
  */
129
- readonly instantiateWasm: "__webpack_require__.v";
130
+ instantiateWasm = 28,
130
131
  /**
131
132
  * the uncaught error handler for the webpack runtime
132
133
  */
133
- readonly uncaughtErrorHandler: "__webpack_require__.oe";
134
+ uncaughtErrorHandler = 29,
134
135
  /**
135
136
  * the script nonce
136
137
  */
137
- readonly scriptNonce: "__webpack_require__.nc";
138
+ scriptNonce = 30,
138
139
  /**
139
140
  * function to load a script tag.
140
141
  * Arguments: (url: string, done: (event) =\> void), key?: string | number, chunkId?: string | number) =\> void
141
142
  * done function is called when loading has finished or timeout occurred.
142
143
  * It will attach to existing script tags with data-webpack == uniqueName + ":" + key or src == url.
143
144
  */
144
- readonly loadScript: "__webpack_require__.l";
145
+ loadScript = 31,
145
146
  /**
146
147
  * function to promote a string to a TrustedScript using webpack's Trusted
147
148
  * Types policy
148
149
  * Arguments: (script: string) =\> TrustedScript
149
150
  */
150
- readonly createScript: "__webpack_require__.ts";
151
+ createScript = 32,
151
152
  /**
152
153
  * function to promote a string to a TrustedScriptURL using webpack's Trusted
153
154
  * Types policy
154
155
  * Arguments: (url: string) =\> TrustedScriptURL
155
156
  */
156
- readonly createScriptUrl: "__webpack_require__.tu";
157
+ createScriptUrl = 33,
157
158
  /**
158
159
  * function to return webpack's Trusted Types policy
159
160
  * Arguments: () =\> TrustedTypePolicy
160
161
  */
161
- readonly getTrustedTypesPolicy: "__webpack_require__.tt";
162
+ getTrustedTypesPolicy = 34,
162
163
  /**
163
164
  * a flag when a chunk has a fetch priority
164
165
  */
165
- readonly hasFetchPriority: "has fetch priority";
166
+ hasFetchPriority = 35,
166
167
  /**
167
168
  * the chunk name of the chunk with the runtime
168
169
  */
169
- readonly chunkName: "__webpack_require__.cn";
170
+ chunkName = 36,
170
171
  /**
171
172
  * the runtime id of the current runtime
172
173
  */
173
- readonly runtimeId: "__webpack_require__.j";
174
+ runtimeId = 37,
174
175
  /**
175
176
  * the filename of the script part of the chunk
176
177
  */
177
- readonly getChunkScriptFilename: "__webpack_require__.u";
178
+ getChunkScriptFilename = 38,
178
179
  /**
179
180
  * the filename of the css part of the chunk
180
181
  */
181
- readonly getChunkCssFilename: "__webpack_require__.k";
182
+ getChunkCssFilename = 39,
183
+ /**
184
+ * rspack version
185
+ * @internal
186
+ */
187
+ rspackVersion = 40,
182
188
  /**
183
189
  * a flag when a module/chunk/tree has css modules
184
190
  */
185
- readonly hasCssModules: "has css modules";
191
+ hasCssModules = 41,
192
+ /**
193
+ * rspack unique id
194
+ * @internal
195
+ */
196
+ rspackUniqueId = 42,
186
197
  /**
187
198
  * the filename of the script part of the hot update chunk
188
199
  */
189
- readonly getChunkUpdateScriptFilename: "__webpack_require__.hu";
200
+ getChunkUpdateScriptFilename = 43,
190
201
  /**
191
202
  * the filename of the css part of the hot update chunk
192
203
  */
193
- readonly getChunkUpdateCssFilename: "__webpack_require__.hk";
204
+ getChunkUpdateCssFilename = 44,
194
205
  /**
195
206
  * startup signal from runtime
196
207
  * This will be called when the runtime chunk has been loaded.
197
208
  */
198
- readonly startup: "__webpack_require__.x";
209
+ startup = 45,
199
210
  /**
200
211
  * @deprecated
201
212
  * creating a default startup function with the entry modules
202
213
  */
203
- readonly startupNoDefault: "__webpack_require__.x (no default handler)";
214
+ startupNoDefault = 46,
204
215
  /**
205
216
  * startup signal from runtime but only used to add logic after the startup
206
217
  */
207
- readonly startupOnlyAfter: "__webpack_require__.x (only after)";
218
+ startupOnlyAfter = 47,
208
219
  /**
209
220
  * startup signal from runtime but only used to add sync logic before the startup
210
221
  */
211
- readonly startupOnlyBefore: "__webpack_require__.x (only before)";
222
+ startupOnlyBefore = 48,
212
223
  /**
213
224
  * global callback functions for installing chunks
214
225
  */
215
- readonly chunkCallback: "webpackChunk";
226
+ chunkCallback = 49,
216
227
  /**
217
228
  * method to startup an entrypoint with needed chunks.
218
229
  * Signature: (moduleId: Id, chunkIds: Id[]) =\> any.
219
230
  * Returns the exports of the module or a Promise
220
231
  */
221
- readonly startupEntrypoint: "__webpack_require__.X";
232
+ startupEntrypoint = 50,
233
+ /**
234
+ * startup signal from runtime for chunk dependencies
235
+ */
236
+ startupChunkDependencies = 51,
222
237
  /**
223
238
  * register deferred code, which will run when certain
224
239
  * chunks are loaded.
@@ -227,87 +242,87 @@ export declare const RuntimeGlobals: {
227
242
  * When (priority & 1) it will wait for all other handlers with lower priority to
228
243
  * be executed before itself is executed
229
244
  */
230
- readonly onChunksLoaded: "__webpack_require__.O";
245
+ onChunksLoaded = 52,
231
246
  /**
232
247
  * method to install a chunk that was loaded somehow
233
248
  * Signature: (\{ id, ids, modules, runtime \}) =\> void
234
249
  */
235
- readonly externalInstallChunk: "__webpack_require__.C";
250
+ externalInstallChunk = 53,
236
251
  /**
237
252
  * interceptor for module executions
238
253
  */
239
- readonly interceptModuleExecution: "__webpack_require__.i";
254
+ interceptModuleExecution = 54,
240
255
  /**
241
256
  * the global object
242
257
  */
243
- readonly global: "__webpack_require__.g";
258
+ global = 55,
244
259
  /**
245
260
  * an object with all share scopes
246
261
  */
247
- readonly shareScopeMap: "__webpack_require__.S";
262
+ shareScopeMap = 56,
248
263
  /**
249
264
  * The sharing init sequence function (only runs once per share scope).
250
265
  * Has one argument, the name of the share scope.
251
266
  * Creates a share scope if not existing
252
267
  */
253
- readonly initializeSharing: "__webpack_require__.I";
268
+ initializeSharing = 57,
254
269
  /**
255
270
  * The current scope when getting a module from a remote
256
271
  */
257
- readonly currentRemoteGetScope: "__webpack_require__.R";
272
+ currentRemoteGetScope = 58,
258
273
  /**
259
274
  * the filename of the HMR manifest
260
275
  */
261
- readonly getUpdateManifestFilename: "__webpack_require__.hmrF";
276
+ getUpdateManifestFilename = 59,
262
277
  /**
263
278
  * function downloading the update manifest
264
279
  */
265
- readonly hmrDownloadManifest: "__webpack_require__.hmrM";
280
+ hmrDownloadManifest = 60,
266
281
  /**
267
282
  * array with handler functions to download chunk updates
268
283
  */
269
- readonly hmrDownloadUpdateHandlers: "__webpack_require__.hmrC";
284
+ hmrDownloadUpdateHandlers = 61,
270
285
  /**
271
286
  * object with all hmr module data for all modules
272
287
  */
273
- readonly hmrModuleData: "__webpack_require__.hmrD";
288
+ hmrModuleData = 62,
274
289
  /**
275
290
  * array with handler functions when a module should be invalidated
276
291
  */
277
- readonly hmrInvalidateModuleHandlers: "__webpack_require__.hmrI";
292
+ hmrInvalidateModuleHandlers = 63,
278
293
  /**
279
294
  * the prefix for storing state of runtime modules when hmr is enabled
280
295
  */
281
- readonly hmrRuntimeStatePrefix: "__webpack_require__.hmrS";
296
+ hmrRuntimeStatePrefix = 64,
282
297
  /**
283
298
  * the AMD define function
284
299
  */
285
- readonly amdDefine: "__webpack_require__.amdD";
300
+ amdDefine = 65,
286
301
  /**
287
302
  * the AMD options
288
303
  */
289
- readonly amdOptions: "__webpack_require__.amdO";
304
+ amdOptions = 66,
290
305
  /**
291
306
  * the System polyfill object
292
307
  */
293
- readonly system: "__webpack_require__.System";
308
+ system = 67,
294
309
  /**
295
310
  * the shorthand for Object.prototype.hasOwnProperty
296
311
  * using of it decreases the compiled bundle size
297
312
  */
298
- readonly hasOwnProperty: "__webpack_require__.o";
313
+ hasOwnProperty = 68,
299
314
  /**
300
315
  * the System.register context object
301
316
  */
302
- readonly systemContext: "__webpack_require__.y";
317
+ systemContext = 69,
303
318
  /**
304
319
  * the baseURI of current document
305
320
  */
306
- readonly baseURI: "__webpack_require__.b";
321
+ baseURI = 70,
307
322
  /**
308
323
  * a RelativeURL class when relative URLs are used
309
324
  */
310
- readonly relativeUrl: "__webpack_require__.U";
325
+ relativeUrl = 71,
311
326
  /**
312
327
  * Creates an async module. The body function must be a async function.
313
328
  * "module.exports" will be decorated with an AsyncModulePromise.
@@ -320,9 +335,22 @@ export declare const RuntimeGlobals: {
320
335
  * hasAwaitAfterDependencies?: boolean
321
336
  * ) =\> void
322
337
  */
323
- readonly asyncModule: "__webpack_require__.a";
324
- readonly asyncModuleExportSymbol: "__webpack_require__.aE";
325
- readonly makeDeferredNamespaceObject: "__webpack_require__.z";
326
- readonly makeDeferredNamespaceObjectSymbol: "__webpack_require__.zS";
327
- };
328
- export declare const isReservedRuntimeGlobal: (r: string) => boolean;
338
+ asyncModule = 72,
339
+ asyncModuleExportSymbol = 73,
340
+ makeDeferredNamespaceObject = 74,
341
+ makeDeferredNamespaceObjectSymbol = 75
342
+ }
343
+ export declare const isReservedRuntimeGlobal: (r: string, compilerRuntimeGlobals: Record<string, string>) => boolean;
344
+ export declare function renderModulePrefix(_compilerOptions: RspackOptionsNormalized): string;
345
+ export declare enum RuntimeVariable {
346
+ Require = 0,
347
+ Modules = 1,
348
+ ModuleCache = 2,
349
+ Module = 3,
350
+ Exports = 4,
351
+ StartupExec = 5
352
+ }
353
+ export declare function renderRuntimeVariables(variable: RuntimeVariable, _compilerOptions?: RspackOptionsNormalized): string;
354
+ export declare function createCompilerRuntimeGlobals(compilerOptions?: RspackOptionsNormalized): typeof RuntimeGlobals;
355
+ declare const DefaultRuntimeGlobals: typeof RuntimeGlobals;
356
+ export { DefaultRuntimeGlobals as RuntimeGlobals };
package/dist/index.mjs CHANGED
@@ -50599,7 +50599,7 @@ __webpack_require__.d(exports_namespaceObject, {
50599
50599
  ProgressPlugin: ()=>ProgressPlugin,
50600
50600
  ProvidePlugin: ()=>ProvidePlugin,
50601
50601
  RspackOptionsApply: ()=>RspackOptionsApply,
50602
- RuntimeGlobals: ()=>RuntimeGlobals,
50602
+ RuntimeGlobals: ()=>DefaultRuntimeGlobals,
50603
50603
  RuntimeModule: ()=>RuntimeModule,
50604
50604
  RuntimePlugin: ()=>RuntimePlugin,
50605
50605
  SourceMapDevToolPlugin: ()=>SourceMapDevToolPlugin,
@@ -58190,7 +58190,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
58190
58190
  if ("object" == typeof rspackFuture) {
58191
58191
  D(rspackFuture, "bundlerInfo", {});
58192
58192
  if ("object" == typeof rspackFuture.bundlerInfo) {
58193
- D(rspackFuture.bundlerInfo, "version", "1.6.7-canary-3faa835a-20251204182618");
58193
+ D(rspackFuture.bundlerInfo, "version", "1.6.7-canary-5041023c-20251206175847");
58194
58194
  D(rspackFuture.bundlerInfo, "bundler", "rspack");
58195
58195
  D(rspackFuture.bundlerInfo, "force", !library);
58196
58196
  }
@@ -59199,6 +59199,289 @@ const keyedNestedConfig = (value, fn, customKeys)=>{
59199
59199
  }
59200
59200
  return result;
59201
59201
  };
59202
+ function __from_binding_runtime_globals(runtimeRequirements, compilerRuntimeGlobals) {
59203
+ const res = new Set();
59204
+ for (const flag of runtimeRequirements.value)if (flag in compilerRuntimeGlobals) res.add(compilerRuntimeGlobals[flag]);
59205
+ else res.add(flag);
59206
+ return res;
59207
+ }
59208
+ function __to_binding_runtime_globals(runtimeRequirements, compilerRuntimeGlobals) {
59209
+ const res = {
59210
+ value: []
59211
+ };
59212
+ const reversedCompilerRuntimeGlobals = Object.fromEntries(Object.entries(compilerRuntimeGlobals).map(([key, value])=>[
59213
+ value,
59214
+ key
59215
+ ]));
59216
+ for (const flag of Array.from(runtimeRequirements)){
59217
+ const item = reversedCompilerRuntimeGlobals[flag];
59218
+ if ("string" == typeof item) res.value.push(item);
59219
+ else res.value.push(flag);
59220
+ }
59221
+ return res;
59222
+ }
59223
+ var RuntimeGlobals_RuntimeGlobals = /*#__PURE__*/ function(RuntimeGlobals) {
59224
+ RuntimeGlobals[RuntimeGlobals["require"] = 0] = "require";
59225
+ RuntimeGlobals[RuntimeGlobals["requireScope"] = 1] = "requireScope";
59226
+ RuntimeGlobals[RuntimeGlobals["exports"] = 2] = "exports";
59227
+ RuntimeGlobals[RuntimeGlobals["thisAsExports"] = 3] = "thisAsExports";
59228
+ RuntimeGlobals[RuntimeGlobals["returnExportsFromRuntime"] = 4] = "returnExportsFromRuntime";
59229
+ RuntimeGlobals[RuntimeGlobals["module"] = 5] = "module";
59230
+ RuntimeGlobals[RuntimeGlobals["moduleId"] = 6] = "moduleId";
59231
+ RuntimeGlobals[RuntimeGlobals["moduleLoaded"] = 7] = "moduleLoaded";
59232
+ RuntimeGlobals[RuntimeGlobals["publicPath"] = 8] = "publicPath";
59233
+ RuntimeGlobals[RuntimeGlobals["entryModuleId"] = 9] = "entryModuleId";
59234
+ RuntimeGlobals[RuntimeGlobals["moduleCache"] = 10] = "moduleCache";
59235
+ RuntimeGlobals[RuntimeGlobals["moduleFactories"] = 11] = "moduleFactories";
59236
+ RuntimeGlobals[RuntimeGlobals["moduleFactoriesAddOnly"] = 12] = "moduleFactoriesAddOnly";
59237
+ RuntimeGlobals[RuntimeGlobals["ensureChunk"] = 13] = "ensureChunk";
59238
+ RuntimeGlobals[RuntimeGlobals["ensureChunkHandlers"] = 14] = "ensureChunkHandlers";
59239
+ RuntimeGlobals[RuntimeGlobals["ensureChunkIncludeEntries"] = 15] = "ensureChunkIncludeEntries";
59240
+ RuntimeGlobals[RuntimeGlobals["prefetchChunk"] = 16] = "prefetchChunk";
59241
+ RuntimeGlobals[RuntimeGlobals["prefetchChunkHandlers"] = 17] = "prefetchChunkHandlers";
59242
+ RuntimeGlobals[RuntimeGlobals["preloadChunk"] = 18] = "preloadChunk";
59243
+ RuntimeGlobals[RuntimeGlobals["preloadChunkHandlers"] = 19] = "preloadChunkHandlers";
59244
+ RuntimeGlobals[RuntimeGlobals["definePropertyGetters"] = 20] = "definePropertyGetters";
59245
+ RuntimeGlobals[RuntimeGlobals["makeNamespaceObject"] = 21] = "makeNamespaceObject";
59246
+ RuntimeGlobals[RuntimeGlobals["createFakeNamespaceObject"] = 22] = "createFakeNamespaceObject";
59247
+ RuntimeGlobals[RuntimeGlobals["compatGetDefaultExport"] = 23] = "compatGetDefaultExport";
59248
+ RuntimeGlobals[RuntimeGlobals["harmonyModuleDecorator"] = 24] = "harmonyModuleDecorator";
59249
+ RuntimeGlobals[RuntimeGlobals["nodeModuleDecorator"] = 25] = "nodeModuleDecorator";
59250
+ RuntimeGlobals[RuntimeGlobals["getFullHash"] = 26] = "getFullHash";
59251
+ RuntimeGlobals[RuntimeGlobals["wasmInstances"] = 27] = "wasmInstances";
59252
+ RuntimeGlobals[RuntimeGlobals["instantiateWasm"] = 28] = "instantiateWasm";
59253
+ RuntimeGlobals[RuntimeGlobals["uncaughtErrorHandler"] = 29] = "uncaughtErrorHandler";
59254
+ RuntimeGlobals[RuntimeGlobals["scriptNonce"] = 30] = "scriptNonce";
59255
+ RuntimeGlobals[RuntimeGlobals["loadScript"] = 31] = "loadScript";
59256
+ RuntimeGlobals[RuntimeGlobals["createScript"] = 32] = "createScript";
59257
+ RuntimeGlobals[RuntimeGlobals["createScriptUrl"] = 33] = "createScriptUrl";
59258
+ RuntimeGlobals[RuntimeGlobals["getTrustedTypesPolicy"] = 34] = "getTrustedTypesPolicy";
59259
+ RuntimeGlobals[RuntimeGlobals["hasFetchPriority"] = 35] = "hasFetchPriority";
59260
+ RuntimeGlobals[RuntimeGlobals["chunkName"] = 36] = "chunkName";
59261
+ RuntimeGlobals[RuntimeGlobals["runtimeId"] = 37] = "runtimeId";
59262
+ RuntimeGlobals[RuntimeGlobals["getChunkScriptFilename"] = 38] = "getChunkScriptFilename";
59263
+ RuntimeGlobals[RuntimeGlobals["getChunkCssFilename"] = 39] = "getChunkCssFilename";
59264
+ RuntimeGlobals[RuntimeGlobals["rspackVersion"] = 40] = "rspackVersion";
59265
+ RuntimeGlobals[RuntimeGlobals["hasCssModules"] = 41] = "hasCssModules";
59266
+ RuntimeGlobals[RuntimeGlobals["rspackUniqueId"] = 42] = "rspackUniqueId";
59267
+ RuntimeGlobals[RuntimeGlobals["getChunkUpdateScriptFilename"] = 43] = "getChunkUpdateScriptFilename";
59268
+ RuntimeGlobals[RuntimeGlobals["getChunkUpdateCssFilename"] = 44] = "getChunkUpdateCssFilename";
59269
+ RuntimeGlobals[RuntimeGlobals["startup"] = 45] = "startup";
59270
+ RuntimeGlobals[RuntimeGlobals["startupNoDefault"] = 46] = "startupNoDefault";
59271
+ RuntimeGlobals[RuntimeGlobals["startupOnlyAfter"] = 47] = "startupOnlyAfter";
59272
+ RuntimeGlobals[RuntimeGlobals["startupOnlyBefore"] = 48] = "startupOnlyBefore";
59273
+ RuntimeGlobals[RuntimeGlobals["chunkCallback"] = 49] = "chunkCallback";
59274
+ RuntimeGlobals[RuntimeGlobals["startupEntrypoint"] = 50] = "startupEntrypoint";
59275
+ RuntimeGlobals[RuntimeGlobals["startupChunkDependencies"] = 51] = "startupChunkDependencies";
59276
+ RuntimeGlobals[RuntimeGlobals["onChunksLoaded"] = 52] = "onChunksLoaded";
59277
+ RuntimeGlobals[RuntimeGlobals["externalInstallChunk"] = 53] = "externalInstallChunk";
59278
+ RuntimeGlobals[RuntimeGlobals["interceptModuleExecution"] = 54] = "interceptModuleExecution";
59279
+ RuntimeGlobals[RuntimeGlobals["global"] = 55] = "global";
59280
+ RuntimeGlobals[RuntimeGlobals["shareScopeMap"] = 56] = "shareScopeMap";
59281
+ RuntimeGlobals[RuntimeGlobals["initializeSharing"] = 57] = "initializeSharing";
59282
+ RuntimeGlobals[RuntimeGlobals["currentRemoteGetScope"] = 58] = "currentRemoteGetScope";
59283
+ RuntimeGlobals[RuntimeGlobals["getUpdateManifestFilename"] = 59] = "getUpdateManifestFilename";
59284
+ RuntimeGlobals[RuntimeGlobals["hmrDownloadManifest"] = 60] = "hmrDownloadManifest";
59285
+ RuntimeGlobals[RuntimeGlobals["hmrDownloadUpdateHandlers"] = 61] = "hmrDownloadUpdateHandlers";
59286
+ RuntimeGlobals[RuntimeGlobals["hmrModuleData"] = 62] = "hmrModuleData";
59287
+ RuntimeGlobals[RuntimeGlobals["hmrInvalidateModuleHandlers"] = 63] = "hmrInvalidateModuleHandlers";
59288
+ RuntimeGlobals[RuntimeGlobals["hmrRuntimeStatePrefix"] = 64] = "hmrRuntimeStatePrefix";
59289
+ RuntimeGlobals[RuntimeGlobals["amdDefine"] = 65] = "amdDefine";
59290
+ RuntimeGlobals[RuntimeGlobals["amdOptions"] = 66] = "amdOptions";
59291
+ RuntimeGlobals[RuntimeGlobals["system"] = 67] = "system";
59292
+ RuntimeGlobals[RuntimeGlobals["hasOwnProperty"] = 68] = "hasOwnProperty";
59293
+ RuntimeGlobals[RuntimeGlobals["systemContext"] = 69] = "systemContext";
59294
+ RuntimeGlobals[RuntimeGlobals["baseURI"] = 70] = "baseURI";
59295
+ RuntimeGlobals[RuntimeGlobals["relativeUrl"] = 71] = "relativeUrl";
59296
+ RuntimeGlobals[RuntimeGlobals["asyncModule"] = 72] = "asyncModule";
59297
+ RuntimeGlobals[RuntimeGlobals["asyncModuleExportSymbol"] = 73] = "asyncModuleExportSymbol";
59298
+ RuntimeGlobals[RuntimeGlobals["makeDeferredNamespaceObject"] = 74] = "makeDeferredNamespaceObject";
59299
+ RuntimeGlobals[RuntimeGlobals["makeDeferredNamespaceObjectSymbol"] = 75] = "makeDeferredNamespaceObjectSymbol";
59300
+ return RuntimeGlobals;
59301
+ }(RuntimeGlobals_RuntimeGlobals || {});
59302
+ const isReservedRuntimeGlobal = (r, compilerRuntimeGlobals)=>Object.values(compilerRuntimeGlobals).includes(r);
59303
+ function renderRuntimeVariables(variable, _compilerOptions) {
59304
+ switch(variable){
59305
+ case 0:
59306
+ return "__webpack_require__";
59307
+ case 1:
59308
+ return "__webpack_modules__";
59309
+ case 2:
59310
+ return "__webpack_module_cache__";
59311
+ case 3:
59312
+ return "__webpack_module__";
59313
+ case 4:
59314
+ return "__webpack_exports__";
59315
+ case 5:
59316
+ return "__webpack_exec__";
59317
+ }
59318
+ }
59319
+ function renderRuntimeGlobals(runtimeGlobals, _compilerOptions) {
59320
+ const scope_name = renderRuntimeVariables(0, _compilerOptions);
59321
+ const exports_name = renderRuntimeVariables(4, _compilerOptions);
59322
+ switch(runtimeGlobals){
59323
+ case 0:
59324
+ return scope_name;
59325
+ case 1:
59326
+ return `${scope_name}.*`;
59327
+ case 2:
59328
+ return exports_name;
59329
+ case 3:
59330
+ return "top-level-this-exports";
59331
+ case 4:
59332
+ return "return-exports-from-runtime";
59333
+ case 5:
59334
+ return "module";
59335
+ case 6:
59336
+ return "module.id";
59337
+ case 7:
59338
+ return "module.loaded";
59339
+ case 8:
59340
+ return `${scope_name}.p`;
59341
+ case 9:
59342
+ return `${scope_name}.s`;
59343
+ case 10:
59344
+ return `${scope_name}.c`;
59345
+ case 11:
59346
+ return `${scope_name}.m`;
59347
+ case 12:
59348
+ return `${scope_name}.m (add only)`;
59349
+ case 13:
59350
+ return `${scope_name}.e`;
59351
+ case 14:
59352
+ return `${scope_name}.f`;
59353
+ case 15:
59354
+ return `${scope_name}.f (include entries)`;
59355
+ case 16:
59356
+ return `${scope_name}.E`;
59357
+ case 17:
59358
+ return `${scope_name}.F`;
59359
+ case 18:
59360
+ return `${scope_name}.G`;
59361
+ case 19:
59362
+ return `${scope_name}.H`;
59363
+ case 20:
59364
+ return `${scope_name}.d`;
59365
+ case 21:
59366
+ return `${scope_name}.r`;
59367
+ case 22:
59368
+ return `${scope_name}.t`;
59369
+ case 23:
59370
+ return `${scope_name}.n`;
59371
+ case 24:
59372
+ return `${scope_name}.hmd`;
59373
+ case 25:
59374
+ return `${scope_name}.nmd`;
59375
+ case 26:
59376
+ return `${scope_name}.h`;
59377
+ case 27:
59378
+ return `${scope_name}.w`;
59379
+ case 28:
59380
+ return `${scope_name}.v`;
59381
+ case 29:
59382
+ return `${scope_name}.oe`;
59383
+ case 30:
59384
+ return `${scope_name}.nc`;
59385
+ case 31:
59386
+ return `${scope_name}.l`;
59387
+ case 32:
59388
+ return `${scope_name}.ts`;
59389
+ case 33:
59390
+ return `${scope_name}.tu`;
59391
+ case 34:
59392
+ return `${scope_name}.tt`;
59393
+ case 35:
59394
+ return "has fetch priority";
59395
+ case 36:
59396
+ return `${scope_name}.cn`;
59397
+ case 37:
59398
+ return `${scope_name}.j`;
59399
+ case 38:
59400
+ return `${scope_name}.u`;
59401
+ case 39:
59402
+ return `${scope_name}.k`;
59403
+ case 40:
59404
+ return `${scope_name}.rv`;
59405
+ case 41:
59406
+ return "has css modules";
59407
+ case 42:
59408
+ return `${scope_name}.ruid`;
59409
+ case 43:
59410
+ return `${scope_name}.hu`;
59411
+ case 44:
59412
+ return `${scope_name}.hk`;
59413
+ case 45:
59414
+ return `${scope_name}.x`;
59415
+ case 46:
59416
+ return `${scope_name}.x (no default handler)`;
59417
+ case 47:
59418
+ return `${scope_name}.x (only after)`;
59419
+ case 48:
59420
+ return `${scope_name}.x (only before)`;
59421
+ case 49:
59422
+ return "global chunk callback";
59423
+ case 50:
59424
+ return `${scope_name}.X`;
59425
+ case 51:
59426
+ return `${scope_name}.x (chunk dependencies)`;
59427
+ case 52:
59428
+ return `${scope_name}.O`;
59429
+ case 53:
59430
+ return `${scope_name}.C`;
59431
+ case 54:
59432
+ return `${scope_name}.i`;
59433
+ case 55:
59434
+ return `${scope_name}.g`;
59435
+ case 56:
59436
+ return `${scope_name}.S`;
59437
+ case 57:
59438
+ return `${scope_name}.I`;
59439
+ case 58:
59440
+ return `${scope_name}.R`;
59441
+ case 59:
59442
+ return `${scope_name}.hmrF`;
59443
+ case 60:
59444
+ return `${scope_name}.hmrM`;
59445
+ case 61:
59446
+ return `${scope_name}.hmrC`;
59447
+ case 62:
59448
+ return `${scope_name}.hmrD`;
59449
+ case 63:
59450
+ return `${scope_name}.hmrI`;
59451
+ case 64:
59452
+ return `${scope_name}.hmrS`;
59453
+ case 65:
59454
+ return `${scope_name}.amdD`;
59455
+ case 66:
59456
+ return `${scope_name}.amdO`;
59457
+ case 67:
59458
+ return `${scope_name}.System`;
59459
+ case 68:
59460
+ return `${scope_name}.o`;
59461
+ case 69:
59462
+ return `${scope_name}.y`;
59463
+ case 70:
59464
+ return `${scope_name}.b`;
59465
+ case 71:
59466
+ return `${scope_name}.U`;
59467
+ case 72:
59468
+ return `${scope_name}.a`;
59469
+ case 73:
59470
+ return `${scope_name}.aE`;
59471
+ case 74:
59472
+ return `${scope_name}.z`;
59473
+ case 75:
59474
+ return `${scope_name}.zS`;
59475
+ default:
59476
+ return "";
59477
+ }
59478
+ }
59479
+ function createCompilerRuntimeGlobals(compilerOptions) {
59480
+ const res = {};
59481
+ for (const key of Object.keys(RuntimeGlobals_RuntimeGlobals))res[key] = renderRuntimeGlobals(RuntimeGlobals_RuntimeGlobals[key], compilerOptions);
59482
+ return res;
59483
+ }
59484
+ const DefaultRuntimeGlobals = createCompilerRuntimeGlobals();
59202
59485
  class ExecuteModulePlugin {
59203
59486
  apply(compiler) {
59204
59487
  compiler.hooks.thisCompilation.tap("executeModule", (compilation)=>{
@@ -59211,10 +59494,10 @@ class ExecuteModulePlugin {
59211
59494
  if (void 0 === source) return;
59212
59495
  const code = source;
59213
59496
  try {
59214
- const fn = vm.runInThisContext(`(function(module, __webpack_module__, __webpack_exports__, exports, ${RuntimeGlobals.require}) {\n${code}\n})`, {
59497
+ const fn = vm.runInThisContext(`(function(module, ${renderRuntimeVariables(3, compiler.options)}, ${renderRuntimeVariables(4, compiler.options)}, exports, ${renderRuntimeVariables(0, compiler.options)}) {\n${code}\n})`, {
59215
59498
  filename: moduleObject.id
59216
59499
  });
59217
- fn.call(moduleObject.exports, moduleObject, moduleObject, moduleObject.exports, moduleObject.exports, context.__webpack_require__);
59500
+ fn.call(moduleObject.exports, moduleObject, moduleObject, moduleObject.exports, moduleObject.exports, context[renderRuntimeVariables(0, compiler.options)]);
59218
59501
  } catch (e) {
59219
59502
  const err = e instanceof Error ? e : new Error(e);
59220
59503
  err.stack += printGeneratedCodeForStack(moduleObject.id, code);
@@ -60207,101 +60490,6 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
60207
60490
  })
60208
60491
  };
60209
60492
  };
60210
- const RESERVED_RUNTIME_GLOBALS = new Map();
60211
- function __from_binding_runtime_globals(runtimeRequirements) {
60212
- const res = new Set();
60213
- for (const flag of runtimeRequirements.value)if (flag in RuntimeGlobals) res.add(RuntimeGlobals[flag]);
60214
- else res.add(flag);
60215
- return res;
60216
- }
60217
- function __to_binding_runtime_globals(runtimeRequirements) {
60218
- const res = {
60219
- value: []
60220
- };
60221
- for (const flag of Array.from(runtimeRequirements)){
60222
- const item = RESERVED_RUNTIME_GLOBALS.get(flag);
60223
- if ("string" == typeof item) res.value.push(item);
60224
- else res.value.push(flag);
60225
- }
60226
- return res;
60227
- }
60228
- const RuntimeGlobals = {
60229
- require: "__webpack_require__",
60230
- requireScope: "__webpack_require__.*",
60231
- exports: "__webpack_exports__",
60232
- thisAsExports: "top-level-this-exports",
60233
- returnExportsFromRuntime: "return-exports-from-runtime",
60234
- module: "module",
60235
- moduleId: "module.id",
60236
- moduleLoaded: "module.loaded",
60237
- publicPath: "__webpack_require__.p",
60238
- entryModuleId: "__webpack_require__.s",
60239
- moduleCache: "__webpack_require__.c",
60240
- moduleFactories: "__webpack_require__.m",
60241
- moduleFactoriesAddOnly: "__webpack_require__.m (add only)",
60242
- ensureChunk: "__webpack_require__.e",
60243
- ensureChunkHandlers: "__webpack_require__.f",
60244
- ensureChunkIncludeEntries: "__webpack_require__.f (include entries)",
60245
- prefetchChunk: "__webpack_require__.E",
60246
- prefetchChunkHandlers: "__webpack_require__.F",
60247
- preloadChunk: "__webpack_require__.G",
60248
- preloadChunkHandlers: "__webpack_require__.H",
60249
- definePropertyGetters: "__webpack_require__.d",
60250
- makeNamespaceObject: "__webpack_require__.r",
60251
- createFakeNamespaceObject: "__webpack_require__.t",
60252
- compatGetDefaultExport: "__webpack_require__.n",
60253
- harmonyModuleDecorator: "__webpack_require__.hmd",
60254
- nodeModuleDecorator: "__webpack_require__.nmd",
60255
- getFullHash: "__webpack_require__.h",
60256
- wasmInstances: "__webpack_require__.w",
60257
- instantiateWasm: "__webpack_require__.v",
60258
- uncaughtErrorHandler: "__webpack_require__.oe",
60259
- scriptNonce: "__webpack_require__.nc",
60260
- loadScript: "__webpack_require__.l",
60261
- createScript: "__webpack_require__.ts",
60262
- createScriptUrl: "__webpack_require__.tu",
60263
- getTrustedTypesPolicy: "__webpack_require__.tt",
60264
- hasFetchPriority: "has fetch priority",
60265
- chunkName: "__webpack_require__.cn",
60266
- runtimeId: "__webpack_require__.j",
60267
- getChunkScriptFilename: "__webpack_require__.u",
60268
- getChunkCssFilename: "__webpack_require__.k",
60269
- hasCssModules: "has css modules",
60270
- getChunkUpdateScriptFilename: "__webpack_require__.hu",
60271
- getChunkUpdateCssFilename: "__webpack_require__.hk",
60272
- startup: "__webpack_require__.x",
60273
- startupNoDefault: "__webpack_require__.x (no default handler)",
60274
- startupOnlyAfter: "__webpack_require__.x (only after)",
60275
- startupOnlyBefore: "__webpack_require__.x (only before)",
60276
- chunkCallback: "webpackChunk",
60277
- startupEntrypoint: "__webpack_require__.X",
60278
- onChunksLoaded: "__webpack_require__.O",
60279
- externalInstallChunk: "__webpack_require__.C",
60280
- interceptModuleExecution: "__webpack_require__.i",
60281
- global: "__webpack_require__.g",
60282
- shareScopeMap: "__webpack_require__.S",
60283
- initializeSharing: "__webpack_require__.I",
60284
- currentRemoteGetScope: "__webpack_require__.R",
60285
- getUpdateManifestFilename: "__webpack_require__.hmrF",
60286
- hmrDownloadManifest: "__webpack_require__.hmrM",
60287
- hmrDownloadUpdateHandlers: "__webpack_require__.hmrC",
60288
- hmrModuleData: "__webpack_require__.hmrD",
60289
- hmrInvalidateModuleHandlers: "__webpack_require__.hmrI",
60290
- hmrRuntimeStatePrefix: "__webpack_require__.hmrS",
60291
- amdDefine: "__webpack_require__.amdD",
60292
- amdOptions: "__webpack_require__.amdO",
60293
- system: "__webpack_require__.System",
60294
- hasOwnProperty: "__webpack_require__.o",
60295
- systemContext: "__webpack_require__.y",
60296
- baseURI: "__webpack_require__.b",
60297
- relativeUrl: "__webpack_require__.U",
60298
- asyncModule: "__webpack_require__.a",
60299
- asyncModuleExportSymbol: "__webpack_require__.aE",
60300
- makeDeferredNamespaceObject: "__webpack_require__.z",
60301
- makeDeferredNamespaceObjectSymbol: "__webpack_require__.zS"
60302
- };
60303
- for (const entry of Object.entries(RuntimeGlobals))RESERVED_RUNTIME_GLOBALS.set(entry[1], entry[0]);
60304
- const isReservedRuntimeGlobal = (r)=>RESERVED_RUNTIME_GLOBALS.has(r);
60305
60493
  var compilation_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
60306
60494
  function compilation_check_private_redeclaration(obj, privateCollection) {
60307
60495
  if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
@@ -60352,10 +60540,10 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
60352
60540
  return getCompiler().__internal__get_compilation().hooks.additionalTreeRuntimeRequirements;
60353
60541
  }, function(queried) {
60354
60542
  return function({ chunk, runtimeRequirements }) {
60355
- const set = __from_binding_runtime_globals(runtimeRequirements);
60543
+ const set = __from_binding_runtime_globals(runtimeRequirements, getCompiler().rspack.RuntimeGlobals);
60356
60544
  queried.call(chunk, set);
60357
60545
  return {
60358
- runtimeRequirements: __to_binding_runtime_globals(set)
60546
+ runtimeRequirements: __to_binding_runtime_globals(set, getCompiler().rspack.RuntimeGlobals)
60359
60547
  };
60360
60548
  };
60361
60549
  }),
@@ -60363,13 +60551,13 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
60363
60551
  return getCompiler().__internal__get_compilation().hooks.runtimeRequirementInTree;
60364
60552
  }, function(queried) {
60365
60553
  return function({ chunk, allRuntimeRequirements, runtimeRequirements }) {
60366
- const set = __from_binding_runtime_globals(runtimeRequirements);
60367
- const all = __from_binding_runtime_globals(allRuntimeRequirements);
60554
+ const set = __from_binding_runtime_globals(runtimeRequirements, getCompiler().rspack.RuntimeGlobals);
60555
+ const all = __from_binding_runtime_globals(allRuntimeRequirements, getCompiler().rspack.RuntimeGlobals);
60368
60556
  const customRuntimeGlobals = new Set();
60369
60557
  const originalAdd = all.add.bind(all);
60370
60558
  const add = function(r) {
60371
60559
  if (all.has(r)) return all;
60372
- if (isReservedRuntimeGlobal(r)) return originalAdd(r);
60560
+ if (isReservedRuntimeGlobal(r, getCompiler().rspack.RuntimeGlobals)) return originalAdd(r);
60373
60561
  customRuntimeGlobals.add(r);
60374
60562
  return originalAdd(r);
60375
60563
  };
@@ -60377,7 +60565,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
60377
60565
  for (const r of set)queried.for(r).call(chunk, all);
60378
60566
  for (const r of customRuntimeGlobals)queried.for(r).call(chunk, all);
60379
60567
  return {
60380
- allRuntimeRequirements: __to_binding_runtime_globals(all)
60568
+ allRuntimeRequirements: __to_binding_runtime_globals(all, getCompiler().rspack.RuntimeGlobals)
60381
60569
  };
60382
60570
  };
60383
60571
  }),
@@ -60417,7 +60605,8 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
60417
60605
  }, function(queried) {
60418
60606
  return function({ entry, id, codegenResults, runtimeModules }) {
60419
60607
  try {
60420
- const __nested_webpack_require_6499_6518__ = (id)=>{
60608
+ const RuntimeGlobals = getCompiler().rspack.RuntimeGlobals;
60609
+ const moduleRequireFn = (id)=>{
60421
60610
  const cached = moduleCache[id];
60422
60611
  if (void 0 !== cached) {
60423
60612
  if (cached.error) throw cached.error;
@@ -60431,7 +60620,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
60431
60620
  loaded: false,
60432
60621
  error: void 0
60433
60622
  },
60434
- require: __nested_webpack_require_6499_6518__
60623
+ require: moduleRequireFn
60435
60624
  };
60436
60625
  for (const handler of interceptModuleExecution)handler(execOptions);
60437
60626
  const result = codegenResults.map[id]["build time"];
@@ -60441,15 +60630,15 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
60441
60630
  codeGenerationResult: new CodeGenerationResult(result),
60442
60631
  moduleObject
60443
60632
  }, {
60444
- __webpack_require__: __nested_webpack_require_6499_6518__
60633
+ [`${RuntimeGlobals.require}`]: moduleRequireFn
60445
60634
  }), "Compilation.hooks.executeModule");
60446
60635
  moduleObject.loaded = true;
60447
60636
  return moduleObject.exports;
60448
60637
  };
60449
- const moduleCache = __nested_webpack_require_6499_6518__[RuntimeGlobals.moduleCache.replace(`${RuntimeGlobals.require}.`, "")] = {};
60450
- const interceptModuleExecution = __nested_webpack_require_6499_6518__[RuntimeGlobals.interceptModuleExecution.replace(`${RuntimeGlobals.require}.`, "")] = [];
60451
- for (const runtimeModule of runtimeModules)__nested_webpack_require_6499_6518__(runtimeModule);
60452
- const executeResult = __nested_webpack_require_6499_6518__(entry);
60638
+ const moduleCache = moduleRequireFn[`${RuntimeGlobals.moduleCache}`.replace(`${RuntimeGlobals.require}.`, "")] = {};
60639
+ const interceptModuleExecution = moduleRequireFn[`${RuntimeGlobals.interceptModuleExecution}`.replace(`${RuntimeGlobals.require}.`, "")] = [];
60640
+ for (const runtimeModule of runtimeModules)moduleRequireFn(runtimeModule);
60641
+ const executeResult = moduleRequireFn(entry);
60453
60642
  getCompiler().__internal__get_module_execution_results_map().set(id, executeResult);
60454
60643
  } catch (e) {
60455
60644
  getCompiler().__internal__get_module_execution_results_map().set(id, e);
@@ -61917,8 +62106,15 @@ class Compiler {
61917
62106
  ]),
61918
62107
  additionalPass: new AsyncSeriesHook([])
61919
62108
  };
61920
- this.webpack = src_rspack_0;
61921
- this.rspack = src_rspack_0;
62109
+ const compilerRuntimeGlobals = createCompilerRuntimeGlobals(options);
62110
+ this.webpack = {
62111
+ ...src_rspack_0,
62112
+ RuntimeGlobals: compilerRuntimeGlobals
62113
+ };
62114
+ this.rspack = {
62115
+ ...src_rspack_0,
62116
+ RuntimeGlobals: compilerRuntimeGlobals
62117
+ };
61922
62118
  this.root = this;
61923
62119
  this.outputPath = "";
61924
62120
  this.inputFileSystem = null;
@@ -62140,7 +62336,7 @@ class MultiStats {
62140
62336
  return obj;
62141
62337
  });
62142
62338
  if (childOptions.version) {
62143
- obj.rspackVersion = "1.6.7-canary-3faa835a-20251204182618";
62339
+ obj.rspackVersion = "1.6.7-canary-5041023c-20251206175847";
62144
62340
  obj.version = "5.75.0";
62145
62341
  }
62146
62342
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
@@ -63445,7 +63641,7 @@ const SIMPLE_EXTRACTORS = {
63445
63641
  },
63446
63642
  version: (object)=>{
63447
63643
  object.version = "5.75.0";
63448
- object.rspackVersion = "1.6.7-canary-3faa835a-20251204182618";
63644
+ object.rspackVersion = "1.6.7-canary-5041023c-20251206175847";
63449
63645
  },
63450
63646
  env: (object, _compilation, _context, { _env })=>{
63451
63647
  object.env = _env;
@@ -66582,7 +66778,7 @@ function transformSync(source, options) {
66582
66778
  const _options = JSON.stringify(options || {});
66583
66779
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66584
66780
  }
66585
- const exports_rspackVersion = "1.6.7-canary-3faa835a-20251204182618";
66781
+ const exports_rspackVersion = "1.6.7-canary-5041023c-20251206175847";
66586
66782
  const exports_version = "5.75.0";
66587
66783
  const exports_WebpackError = Error;
66588
66784
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
@@ -66993,4 +67189,4 @@ var __webpack_exports__EntryDependency = external_rspack_wasi_browser_js_.EntryD
66993
67189
  var __webpack_exports__ExternalModule = external_rspack_wasi_browser_js_.ExternalModule;
66994
67190
  var __webpack_exports__Module = external_rspack_wasi_browser_js_.Module;
66995
67191
  var __webpack_exports__NormalModule = external_rspack_wasi_browser_js_.NormalModule;
66996
- export { BannerPlugin, BrowserHttpImportEsmPlugin, BrowserRequirePlugin, CircularDependencyRspackPlugin, Compilation, Compiler, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, DefinePlugin, DllPlugin, DllReferencePlugin, DynamicEntryPlugin, lib_EntryOptionPlugin as EntryOptionPlugin, EntryPlugin, EnvironmentPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, ExternalsPlugin, HotModuleReplacementPlugin, HtmlRspackPlugin, IgnorePlugin, LightningCssMinimizerRspackPlugin, LoaderOptionsPlugin, LoaderTargetPlugin, ModuleFilenameHelpers_namespaceObject as ModuleFilenameHelpers, MultiCompiler, MultiStats, NoEmitOnErrorsPlugin, NormalModuleReplacementPlugin, ProgressPlugin, ProvidePlugin, RspackOptionsApply, RuntimeGlobals, RuntimeModule, RuntimePlugin, SourceMapDevToolPlugin, Stats, statsFactoryUtils_StatsErrorCode as StatsErrorCode, SwcJsMinimizerRspackPlugin, Template, ValidationError, WarnCaseSensitiveModulesPlugin, exports_WebpackError as WebpackError, RspackOptionsApply as WebpackOptionsApply, builtinMemFs, exports_config as config, container, electron, exports_experiments as experiments, javascript, exports_library as library, exports_node as node, optimize, src_rspack_0 as rspack, exports_rspackVersion as rspackVersion, sharing, sources, exports_util as util, exports_version as version, exports_wasm as wasm, web, webworker, __webpack_exports__AsyncDependenciesBlock as AsyncDependenciesBlock, __webpack_exports__ConcatenatedModule as ConcatenatedModule, __webpack_exports__ContextModule as ContextModule, __webpack_exports__Dependency as Dependency, __webpack_exports__EntryDependency as EntryDependency, __webpack_exports__ExternalModule as ExternalModule, __webpack_exports__Module as Module, __webpack_exports__NormalModule as NormalModule };
67192
+ export { BannerPlugin, BrowserHttpImportEsmPlugin, BrowserRequirePlugin, CircularDependencyRspackPlugin, Compilation, Compiler, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, DefinePlugin, DllPlugin, DllReferencePlugin, DynamicEntryPlugin, lib_EntryOptionPlugin as EntryOptionPlugin, EntryPlugin, EnvironmentPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, ExternalsPlugin, HotModuleReplacementPlugin, HtmlRspackPlugin, IgnorePlugin, LightningCssMinimizerRspackPlugin, LoaderOptionsPlugin, LoaderTargetPlugin, ModuleFilenameHelpers_namespaceObject as ModuleFilenameHelpers, MultiCompiler, MultiStats, NoEmitOnErrorsPlugin, NormalModuleReplacementPlugin, ProgressPlugin, ProvidePlugin, RspackOptionsApply, DefaultRuntimeGlobals as RuntimeGlobals, RuntimeModule, RuntimePlugin, SourceMapDevToolPlugin, Stats, statsFactoryUtils_StatsErrorCode as StatsErrorCode, SwcJsMinimizerRspackPlugin, Template, ValidationError, WarnCaseSensitiveModulesPlugin, exports_WebpackError as WebpackError, RspackOptionsApply as WebpackOptionsApply, builtinMemFs, exports_config as config, container, electron, exports_experiments as experiments, javascript, exports_library as library, exports_node as node, optimize, src_rspack_0 as rspack, exports_rspackVersion as rspackVersion, sharing, sources, exports_util as util, exports_version as version, exports_wasm as wasm, web, webworker, __webpack_exports__AsyncDependenciesBlock as AsyncDependenciesBlock, __webpack_exports__ConcatenatedModule as ConcatenatedModule, __webpack_exports__ContextModule as ContextModule, __webpack_exports__Dependency as Dependency, __webpack_exports__EntryDependency as EntryDependency, __webpack_exports__ExternalModule as ExternalModule, __webpack_exports__Module as Module, __webpack_exports__NormalModule as NormalModule };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.6.7-canary-3faa835a-20251204182618",
3
+ "version": "1.6.7-canary-5041023c-20251206175847",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",