@rspack-canary/browser 1.6.8-canary-80c45373-20251209173812 → 1.6.8-canary-ea281acb-20251211080551
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.
package/dist/RuntimeGlobals.d.ts
CHANGED
|
@@ -351,6 +351,6 @@ export declare enum RuntimeVariable {
|
|
|
351
351
|
StartupExec = 5
|
|
352
352
|
}
|
|
353
353
|
export declare function renderRuntimeVariables(variable: RuntimeVariable, _compilerOptions?: RspackOptionsNormalized): string;
|
|
354
|
-
export declare function createCompilerRuntimeGlobals(compilerOptions?: RspackOptionsNormalized): typeof RuntimeGlobals
|
|
355
|
-
declare const DefaultRuntimeGlobals:
|
|
354
|
+
export declare function createCompilerRuntimeGlobals(compilerOptions?: RspackOptionsNormalized): Record<keyof typeof RuntimeGlobals, string>;
|
|
355
|
+
declare const DefaultRuntimeGlobals: Record<"publicPath" | "chunkName" | "moduleId" | "module" | "exports" | "require" | "global" | "system" | "requireScope" | "thisAsExports" | "returnExportsFromRuntime" | "moduleLoaded" | "entryModuleId" | "moduleCache" | "moduleFactories" | "moduleFactoriesAddOnly" | "ensureChunk" | "ensureChunkHandlers" | "ensureChunkIncludeEntries" | "prefetchChunk" | "prefetchChunkHandlers" | "preloadChunk" | "preloadChunkHandlers" | "definePropertyGetters" | "makeNamespaceObject" | "createFakeNamespaceObject" | "compatGetDefaultExport" | "harmonyModuleDecorator" | "nodeModuleDecorator" | "getFullHash" | "wasmInstances" | "instantiateWasm" | "uncaughtErrorHandler" | "scriptNonce" | "loadScript" | "createScript" | "createScriptUrl" | "getTrustedTypesPolicy" | "hasFetchPriority" | "runtimeId" | "getChunkScriptFilename" | "getChunkCssFilename" | "rspackVersion" | "hasCssModules" | "rspackUniqueId" | "getChunkUpdateScriptFilename" | "getChunkUpdateCssFilename" | "startup" | "startupNoDefault" | "startupOnlyAfter" | "startupOnlyBefore" | "chunkCallback" | "startupEntrypoint" | "startupChunkDependencies" | "onChunksLoaded" | "externalInstallChunk" | "interceptModuleExecution" | "shareScopeMap" | "initializeSharing" | "currentRemoteGetScope" | "getUpdateManifestFilename" | "hmrDownloadManifest" | "hmrDownloadUpdateHandlers" | "hmrModuleData" | "hmrInvalidateModuleHandlers" | "hmrRuntimeStatePrefix" | "amdDefine" | "amdOptions" | "hasOwnProperty" | "systemContext" | "baseURI" | "relativeUrl" | "asyncModule" | "asyncModuleExportSymbol" | "makeDeferredNamespaceObject" | "makeDeferredNamespaceObjectSymbol", string>;
|
|
356
356
|
export { DefaultRuntimeGlobals as RuntimeGlobals };
|
package/dist/index.mjs
CHANGED
|
@@ -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.8-canary-
|
|
58193
|
+
D(rspackFuture.bundlerInfo, "version", "1.6.8-canary-ea281acb-20251211080551");
|
|
58194
58194
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
58195
58195
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
58196
58196
|
}
|
|
@@ -60630,13 +60630,13 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
60630
60630
|
codeGenerationResult: new CodeGenerationResult(result),
|
|
60631
60631
|
moduleObject
|
|
60632
60632
|
}, {
|
|
60633
|
-
[
|
|
60633
|
+
[RuntimeGlobals.require]: moduleRequireFn
|
|
60634
60634
|
}), "Compilation.hooks.executeModule");
|
|
60635
60635
|
moduleObject.loaded = true;
|
|
60636
60636
|
return moduleObject.exports;
|
|
60637
60637
|
};
|
|
60638
|
-
const moduleCache = moduleRequireFn[
|
|
60639
|
-
const interceptModuleExecution = moduleRequireFn[
|
|
60638
|
+
const moduleCache = moduleRequireFn[RuntimeGlobals.moduleCache.replace(`${RuntimeGlobals.require}.`, "")] = {};
|
|
60639
|
+
const interceptModuleExecution = moduleRequireFn[RuntimeGlobals.interceptModuleExecution.replace(`${RuntimeGlobals.require}.`, "")] = [];
|
|
60640
60640
|
for (const runtimeModule of runtimeModules)moduleRequireFn(runtimeModule);
|
|
60641
60641
|
const executeResult = moduleRequireFn(entry);
|
|
60642
60642
|
getCompiler().__internal__get_module_execution_results_map().set(id, executeResult);
|
|
@@ -62336,7 +62336,7 @@ class MultiStats {
|
|
|
62336
62336
|
return obj;
|
|
62337
62337
|
});
|
|
62338
62338
|
if (childOptions.version) {
|
|
62339
|
-
obj.rspackVersion = "1.6.8-canary-
|
|
62339
|
+
obj.rspackVersion = "1.6.8-canary-ea281acb-20251211080551";
|
|
62340
62340
|
obj.version = "5.75.0";
|
|
62341
62341
|
}
|
|
62342
62342
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -63646,7 +63646,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
63646
63646
|
},
|
|
63647
63647
|
version: (object)=>{
|
|
63648
63648
|
object.version = "5.75.0";
|
|
63649
|
-
object.rspackVersion = "1.6.8-canary-
|
|
63649
|
+
object.rspackVersion = "1.6.8-canary-ea281acb-20251211080551";
|
|
63650
63650
|
},
|
|
63651
63651
|
env: (object, _compilation, _context, { _env })=>{
|
|
63652
63652
|
object.env = _env;
|
|
@@ -66783,7 +66783,7 @@ function transformSync(source, options) {
|
|
|
66783
66783
|
const _options = JSON.stringify(options || {});
|
|
66784
66784
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
66785
66785
|
}
|
|
66786
|
-
const exports_rspackVersion = "1.6.8-canary-
|
|
66786
|
+
const exports_rspackVersion = "1.6.8-canary-ea281acb-20251211080551";
|
|
66787
66787
|
const exports_version = "5.75.0";
|
|
66788
66788
|
const exports_WebpackError = Error;
|
|
66789
66789
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -150,6 +150,7 @@ export declare class ChunkGraph {
|
|
|
150
150
|
getModuleId(module: Module): string | number | null
|
|
151
151
|
_getModuleHash(module: Module, runtime: string | string[] | undefined): string | null
|
|
152
152
|
getBlockChunkGroup(jsBlock: AsyncDependenciesBlock): ChunkGroup | null
|
|
153
|
+
getChunkGroupBlocks(chunkGroup: ChunkGroup): AsyncDependenciesBlock[]
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
export declare class ChunkGroup {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.6.8-canary-
|
|
3
|
+
"version": "1.6.8-canary-ea281acb-20251211080551",
|
|
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.",
|