@rspack-debug/browser 2.0.0-beta.1 → 2.0.0-beta.2
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/NormalModule.d.ts +0 -1
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/index.js +7 -511
- package/package.json +1 -1
package/dist/NormalModule.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import type { LoaderContext } from './config';
|
|
|
4
4
|
import type { Module } from './Module';
|
|
5
5
|
export interface NormalModuleCompilationHooks {
|
|
6
6
|
loader: liteTapable.SyncHook<[LoaderContext, Module]>;
|
|
7
|
-
readResourceForScheme: any;
|
|
8
7
|
readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
|
|
9
8
|
}
|
|
10
9
|
declare module './binding' {
|
package/dist/RuntimeGlobals.d.ts
CHANGED
|
@@ -352,5 +352,5 @@ export declare enum RuntimeVariable {
|
|
|
352
352
|
}
|
|
353
353
|
export declare function renderRuntimeVariables(variable: RuntimeVariable, _compilerOptions?: RspackOptionsNormalized): string;
|
|
354
354
|
export declare function createCompilerRuntimeGlobals(compilerOptions?: RspackOptionsNormalized): Record<keyof typeof RuntimeGlobals, string>;
|
|
355
|
-
declare const DefaultRuntimeGlobals: Record<"publicPath" | "chunkName" | "moduleId" | "module" | "
|
|
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.js
CHANGED
|
@@ -2697,14 +2697,6 @@ __webpack_require__.add({
|
|
|
2697
2697
|
isDeepStrictEqual: isDeepStrictEqual
|
|
2698
2698
|
};
|
|
2699
2699
|
},
|
|
2700
|
-
"../../node_modules/.pnpm/async-function@1.0.0/node_modules/async-function/index.js" (module) {
|
|
2701
|
-
const cached = (async function() {}).constructor;
|
|
2702
|
-
module.exports = ()=>cached;
|
|
2703
|
-
},
|
|
2704
|
-
"../../node_modules/.pnpm/async-generator-function@1.0.0/node_modules/async-generator-function/index.js" (module) {
|
|
2705
|
-
const cached = (async function*() {}).constructor;
|
|
2706
|
-
module.exports = ()=>cached;
|
|
2707
|
-
},
|
|
2708
2700
|
"../../node_modules/.pnpm/bn.js@4.12.2/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2709
2701
|
module = __webpack_require__.nmd(module);
|
|
2710
2702
|
(function(module, exports) {
|
|
@@ -9837,7 +9829,7 @@ __webpack_require__.add({
|
|
|
9837
9829
|
module.exports = "u" > typeof Reflect && Reflect && Reflect.apply;
|
|
9838
9830
|
},
|
|
9839
9831
|
"../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/callBound.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
9840
|
-
var GetIntrinsic = __webpack_require__("../../node_modules/.pnpm/get-intrinsic@1.3.
|
|
9832
|
+
var GetIntrinsic = __webpack_require__("../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js");
|
|
9841
9833
|
var callBind = __webpack_require__("../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js");
|
|
9842
9834
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
9843
9835
|
module.exports = function(name, allowMissing) {
|
|
@@ -9862,7 +9854,7 @@ __webpack_require__.add({
|
|
|
9862
9854
|
else module.exports.apply = applyBind;
|
|
9863
9855
|
},
|
|
9864
9856
|
"../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
9865
|
-
var GetIntrinsic = __webpack_require__("../../node_modules/.pnpm/get-intrinsic@1.3.
|
|
9857
|
+
var GetIntrinsic = __webpack_require__("../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js");
|
|
9866
9858
|
var callBindBasic = __webpack_require__("../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js");
|
|
9867
9859
|
var $indexOf = callBindBasic([
|
|
9868
9860
|
GetIntrinsic('%String.prototype.indexOf%')
|
|
@@ -15340,10 +15332,6 @@ __webpack_require__.add({
|
|
|
15340
15332
|
var implementation = __webpack_require__("../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js");
|
|
15341
15333
|
module.exports = Function.prototype.bind || implementation;
|
|
15342
15334
|
},
|
|
15343
|
-
"../../node_modules/.pnpm/generator-function@2.0.0/node_modules/generator-function/index.js" (module) {
|
|
15344
|
-
const cached = (function*() {}).constructor;
|
|
15345
|
-
module.exports = ()=>cached;
|
|
15346
|
-
},
|
|
15347
15335
|
"../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
15348
15336
|
var undefined;
|
|
15349
15337
|
var $Object = __webpack_require__("../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js");
|
|
@@ -15797,456 +15785,6 @@ __webpack_require__.add({
|
|
|
15797
15785
|
return value;
|
|
15798
15786
|
};
|
|
15799
15787
|
},
|
|
15800
|
-
"../../node_modules/.pnpm/get-intrinsic@1.3.1/node_modules/get-intrinsic/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
15801
|
-
var undefined;
|
|
15802
|
-
var $Object = __webpack_require__("../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js");
|
|
15803
|
-
var $Error = __webpack_require__("../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js");
|
|
15804
|
-
var $EvalError = __webpack_require__("../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js");
|
|
15805
|
-
var $RangeError = __webpack_require__("../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js");
|
|
15806
|
-
var $ReferenceError = __webpack_require__("../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js");
|
|
15807
|
-
var $SyntaxError = __webpack_require__("../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js");
|
|
15808
|
-
var $TypeError = __webpack_require__("../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js");
|
|
15809
|
-
var $URIError = __webpack_require__("../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js");
|
|
15810
|
-
var abs = __webpack_require__("../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js");
|
|
15811
|
-
var floor = __webpack_require__("../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js");
|
|
15812
|
-
var max = __webpack_require__("../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js");
|
|
15813
|
-
var min = __webpack_require__("../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js");
|
|
15814
|
-
var pow = __webpack_require__("../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js");
|
|
15815
|
-
var round = __webpack_require__("../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js");
|
|
15816
|
-
var sign = __webpack_require__("../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js");
|
|
15817
|
-
var $gOPD = __webpack_require__("../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js");
|
|
15818
|
-
var $defineProperty = __webpack_require__("../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js");
|
|
15819
|
-
var throwTypeError = function() {
|
|
15820
|
-
throw new $TypeError();
|
|
15821
|
-
};
|
|
15822
|
-
var ThrowTypeError = $gOPD ? function() {
|
|
15823
|
-
try {
|
|
15824
|
-
arguments.callee;
|
|
15825
|
-
return throwTypeError;
|
|
15826
|
-
} catch (calleeThrows) {
|
|
15827
|
-
try {
|
|
15828
|
-
return $gOPD(arguments, 'callee').get;
|
|
15829
|
-
} catch (gOPDthrows) {
|
|
15830
|
-
return throwTypeError;
|
|
15831
|
-
}
|
|
15832
|
-
}
|
|
15833
|
-
}() : throwTypeError;
|
|
15834
|
-
var hasSymbols = __webpack_require__("../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js")();
|
|
15835
|
-
var getProto = __webpack_require__("../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js");
|
|
15836
|
-
var $ObjectGPO = __webpack_require__("../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js");
|
|
15837
|
-
var $ReflectGPO = __webpack_require__("../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js");
|
|
15838
|
-
var $apply = __webpack_require__("../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js");
|
|
15839
|
-
var $call = __webpack_require__("../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js");
|
|
15840
|
-
var needsEval = {};
|
|
15841
|
-
var TypedArray = "u" > typeof Uint8Array && getProto ? getProto(Uint8Array) : undefined;
|
|
15842
|
-
var INTRINSICS = {
|
|
15843
|
-
__proto__: null,
|
|
15844
|
-
'%AggregateError%': "u" < typeof AggregateError ? undefined : AggregateError,
|
|
15845
|
-
'%Array%': Array,
|
|
15846
|
-
'%ArrayBuffer%': "u" < typeof ArrayBuffer ? undefined : ArrayBuffer,
|
|
15847
|
-
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
15848
|
-
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
15849
|
-
'%AsyncFunction%': needsEval,
|
|
15850
|
-
'%AsyncGenerator%': needsEval,
|
|
15851
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
15852
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
15853
|
-
'%Atomics%': "u" < typeof Atomics ? undefined : Atomics,
|
|
15854
|
-
'%BigInt%': "u" < typeof BigInt ? undefined : BigInt,
|
|
15855
|
-
'%BigInt64Array%': "u" < typeof BigInt64Array ? undefined : BigInt64Array,
|
|
15856
|
-
'%BigUint64Array%': "u" < typeof BigUint64Array ? undefined : BigUint64Array,
|
|
15857
|
-
'%Boolean%': Boolean,
|
|
15858
|
-
'%DataView%': "u" < typeof DataView ? undefined : DataView,
|
|
15859
|
-
'%Date%': Date,
|
|
15860
|
-
'%decodeURI%': decodeURI,
|
|
15861
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
15862
|
-
'%encodeURI%': encodeURI,
|
|
15863
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
15864
|
-
'%Error%': $Error,
|
|
15865
|
-
'%eval%': eval,
|
|
15866
|
-
'%EvalError%': $EvalError,
|
|
15867
|
-
'%Float16Array%': "u" < typeof Float16Array ? undefined : Float16Array,
|
|
15868
|
-
'%Float32Array%': "u" < typeof Float32Array ? undefined : Float32Array,
|
|
15869
|
-
'%Float64Array%': "u" < typeof Float64Array ? undefined : Float64Array,
|
|
15870
|
-
'%FinalizationRegistry%': "u" < typeof FinalizationRegistry ? undefined : FinalizationRegistry,
|
|
15871
|
-
'%Function%': Function,
|
|
15872
|
-
'%GeneratorFunction%': needsEval,
|
|
15873
|
-
'%Int8Array%': "u" < typeof Int8Array ? undefined : Int8Array,
|
|
15874
|
-
'%Int16Array%': "u" < typeof Int16Array ? undefined : Int16Array,
|
|
15875
|
-
'%Int32Array%': "u" < typeof Int32Array ? undefined : Int32Array,
|
|
15876
|
-
'%isFinite%': isFinite,
|
|
15877
|
-
'%isNaN%': isNaN,
|
|
15878
|
-
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
15879
|
-
'%JSON%': 'object' == typeof JSON ? JSON : undefined,
|
|
15880
|
-
'%Map%': "u" < typeof Map ? undefined : Map,
|
|
15881
|
-
'%MapIteratorPrototype%': "u" > typeof Map && hasSymbols && getProto ? getProto(new Map()[Symbol.iterator]()) : undefined,
|
|
15882
|
-
'%Math%': Math,
|
|
15883
|
-
'%Number%': Number,
|
|
15884
|
-
'%Object%': $Object,
|
|
15885
|
-
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
15886
|
-
'%parseFloat%': parseFloat,
|
|
15887
|
-
'%parseInt%': parseInt,
|
|
15888
|
-
'%Promise%': "u" < typeof Promise ? undefined : Promise,
|
|
15889
|
-
'%Proxy%': "u" < typeof Proxy ? undefined : Proxy,
|
|
15890
|
-
'%RangeError%': $RangeError,
|
|
15891
|
-
'%ReferenceError%': $ReferenceError,
|
|
15892
|
-
'%Reflect%': "u" < typeof Reflect ? undefined : Reflect,
|
|
15893
|
-
'%RegExp%': RegExp,
|
|
15894
|
-
'%Set%': "u" < typeof Set ? undefined : Set,
|
|
15895
|
-
'%SetIteratorPrototype%': "u" > typeof Set && hasSymbols && getProto ? getProto(new Set()[Symbol.iterator]()) : undefined,
|
|
15896
|
-
'%SharedArrayBuffer%': "u" < typeof SharedArrayBuffer ? undefined : SharedArrayBuffer,
|
|
15897
|
-
'%String%': String,
|
|
15898
|
-
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
15899
|
-
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
15900
|
-
'%SyntaxError%': $SyntaxError,
|
|
15901
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
15902
|
-
'%TypedArray%': TypedArray,
|
|
15903
|
-
'%TypeError%': $TypeError,
|
|
15904
|
-
'%Uint8Array%': "u" < typeof Uint8Array ? undefined : Uint8Array,
|
|
15905
|
-
'%Uint8ClampedArray%': "u" < typeof Uint8ClampedArray ? undefined : Uint8ClampedArray,
|
|
15906
|
-
'%Uint16Array%': "u" < typeof Uint16Array ? undefined : Uint16Array,
|
|
15907
|
-
'%Uint32Array%': "u" < typeof Uint32Array ? undefined : Uint32Array,
|
|
15908
|
-
'%URIError%': $URIError,
|
|
15909
|
-
'%WeakMap%': "u" < typeof WeakMap ? undefined : WeakMap,
|
|
15910
|
-
'%WeakRef%': "u" < typeof WeakRef ? undefined : WeakRef,
|
|
15911
|
-
'%WeakSet%': "u" < typeof WeakSet ? undefined : WeakSet,
|
|
15912
|
-
'%Function.prototype.call%': $call,
|
|
15913
|
-
'%Function.prototype.apply%': $apply,
|
|
15914
|
-
'%Object.defineProperty%': $defineProperty,
|
|
15915
|
-
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
15916
|
-
'%Math.abs%': abs,
|
|
15917
|
-
'%Math.floor%': floor,
|
|
15918
|
-
'%Math.max%': max,
|
|
15919
|
-
'%Math.min%': min,
|
|
15920
|
-
'%Math.pow%': pow,
|
|
15921
|
-
'%Math.round%': round,
|
|
15922
|
-
'%Math.sign%': sign,
|
|
15923
|
-
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
15924
|
-
};
|
|
15925
|
-
if (getProto) try {
|
|
15926
|
-
null.error;
|
|
15927
|
-
} catch (e) {
|
|
15928
|
-
var errorProto = getProto(getProto(e));
|
|
15929
|
-
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
15930
|
-
}
|
|
15931
|
-
var getAsyncFunction = __webpack_require__("../../node_modules/.pnpm/async-function@1.0.0/node_modules/async-function/index.js");
|
|
15932
|
-
var getGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/generator-function@2.0.0/node_modules/generator-function/index.js");
|
|
15933
|
-
var getAsyncGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/async-generator-function@1.0.0/node_modules/async-generator-function/index.js");
|
|
15934
|
-
var doEval = function doEval(name) {
|
|
15935
|
-
var value;
|
|
15936
|
-
if ('%AsyncFunction%' === name) value = getAsyncFunction() || void 0;
|
|
15937
|
-
else if ('%GeneratorFunction%' === name) value = getGeneratorFunction() || void 0;
|
|
15938
|
-
else if ('%AsyncGeneratorFunction%' === name) value = getAsyncGeneratorFunction() || void 0;
|
|
15939
|
-
else if ('%AsyncGenerator%' === name) {
|
|
15940
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
15941
|
-
if (fn) value = fn.prototype;
|
|
15942
|
-
} else if ('%AsyncIteratorPrototype%' === name) {
|
|
15943
|
-
var gen = doEval('%AsyncGenerator%');
|
|
15944
|
-
if (gen && getProto) value = getProto(gen.prototype);
|
|
15945
|
-
}
|
|
15946
|
-
INTRINSICS[name] = value;
|
|
15947
|
-
return value;
|
|
15948
|
-
};
|
|
15949
|
-
var LEGACY_ALIASES = {
|
|
15950
|
-
__proto__: null,
|
|
15951
|
-
'%ArrayBufferPrototype%': [
|
|
15952
|
-
'ArrayBuffer',
|
|
15953
|
-
'prototype'
|
|
15954
|
-
],
|
|
15955
|
-
'%ArrayPrototype%': [
|
|
15956
|
-
'Array',
|
|
15957
|
-
'prototype'
|
|
15958
|
-
],
|
|
15959
|
-
'%ArrayProto_entries%': [
|
|
15960
|
-
'Array',
|
|
15961
|
-
'prototype',
|
|
15962
|
-
'entries'
|
|
15963
|
-
],
|
|
15964
|
-
'%ArrayProto_forEach%': [
|
|
15965
|
-
'Array',
|
|
15966
|
-
'prototype',
|
|
15967
|
-
'forEach'
|
|
15968
|
-
],
|
|
15969
|
-
'%ArrayProto_keys%': [
|
|
15970
|
-
'Array',
|
|
15971
|
-
'prototype',
|
|
15972
|
-
'keys'
|
|
15973
|
-
],
|
|
15974
|
-
'%ArrayProto_values%': [
|
|
15975
|
-
'Array',
|
|
15976
|
-
'prototype',
|
|
15977
|
-
'values'
|
|
15978
|
-
],
|
|
15979
|
-
'%AsyncFunctionPrototype%': [
|
|
15980
|
-
'AsyncFunction',
|
|
15981
|
-
'prototype'
|
|
15982
|
-
],
|
|
15983
|
-
'%AsyncGenerator%': [
|
|
15984
|
-
'AsyncGeneratorFunction',
|
|
15985
|
-
'prototype'
|
|
15986
|
-
],
|
|
15987
|
-
'%AsyncGeneratorPrototype%': [
|
|
15988
|
-
'AsyncGeneratorFunction',
|
|
15989
|
-
'prototype',
|
|
15990
|
-
'prototype'
|
|
15991
|
-
],
|
|
15992
|
-
'%BooleanPrototype%': [
|
|
15993
|
-
'Boolean',
|
|
15994
|
-
'prototype'
|
|
15995
|
-
],
|
|
15996
|
-
'%DataViewPrototype%': [
|
|
15997
|
-
'DataView',
|
|
15998
|
-
'prototype'
|
|
15999
|
-
],
|
|
16000
|
-
'%DatePrototype%': [
|
|
16001
|
-
'Date',
|
|
16002
|
-
'prototype'
|
|
16003
|
-
],
|
|
16004
|
-
'%ErrorPrototype%': [
|
|
16005
|
-
'Error',
|
|
16006
|
-
'prototype'
|
|
16007
|
-
],
|
|
16008
|
-
'%EvalErrorPrototype%': [
|
|
16009
|
-
'EvalError',
|
|
16010
|
-
'prototype'
|
|
16011
|
-
],
|
|
16012
|
-
'%Float32ArrayPrototype%': [
|
|
16013
|
-
'Float32Array',
|
|
16014
|
-
'prototype'
|
|
16015
|
-
],
|
|
16016
|
-
'%Float64ArrayPrototype%': [
|
|
16017
|
-
'Float64Array',
|
|
16018
|
-
'prototype'
|
|
16019
|
-
],
|
|
16020
|
-
'%FunctionPrototype%': [
|
|
16021
|
-
'Function',
|
|
16022
|
-
'prototype'
|
|
16023
|
-
],
|
|
16024
|
-
'%Generator%': [
|
|
16025
|
-
'GeneratorFunction',
|
|
16026
|
-
'prototype'
|
|
16027
|
-
],
|
|
16028
|
-
'%GeneratorPrototype%': [
|
|
16029
|
-
'GeneratorFunction',
|
|
16030
|
-
'prototype',
|
|
16031
|
-
'prototype'
|
|
16032
|
-
],
|
|
16033
|
-
'%Int8ArrayPrototype%': [
|
|
16034
|
-
'Int8Array',
|
|
16035
|
-
'prototype'
|
|
16036
|
-
],
|
|
16037
|
-
'%Int16ArrayPrototype%': [
|
|
16038
|
-
'Int16Array',
|
|
16039
|
-
'prototype'
|
|
16040
|
-
],
|
|
16041
|
-
'%Int32ArrayPrototype%': [
|
|
16042
|
-
'Int32Array',
|
|
16043
|
-
'prototype'
|
|
16044
|
-
],
|
|
16045
|
-
'%JSONParse%': [
|
|
16046
|
-
'JSON',
|
|
16047
|
-
'parse'
|
|
16048
|
-
],
|
|
16049
|
-
'%JSONStringify%': [
|
|
16050
|
-
'JSON',
|
|
16051
|
-
'stringify'
|
|
16052
|
-
],
|
|
16053
|
-
'%MapPrototype%': [
|
|
16054
|
-
'Map',
|
|
16055
|
-
'prototype'
|
|
16056
|
-
],
|
|
16057
|
-
'%NumberPrototype%': [
|
|
16058
|
-
'Number',
|
|
16059
|
-
'prototype'
|
|
16060
|
-
],
|
|
16061
|
-
'%ObjectPrototype%': [
|
|
16062
|
-
'Object',
|
|
16063
|
-
'prototype'
|
|
16064
|
-
],
|
|
16065
|
-
'%ObjProto_toString%': [
|
|
16066
|
-
'Object',
|
|
16067
|
-
'prototype',
|
|
16068
|
-
'toString'
|
|
16069
|
-
],
|
|
16070
|
-
'%ObjProto_valueOf%': [
|
|
16071
|
-
'Object',
|
|
16072
|
-
'prototype',
|
|
16073
|
-
'valueOf'
|
|
16074
|
-
],
|
|
16075
|
-
'%PromisePrototype%': [
|
|
16076
|
-
'Promise',
|
|
16077
|
-
'prototype'
|
|
16078
|
-
],
|
|
16079
|
-
'%PromiseProto_then%': [
|
|
16080
|
-
'Promise',
|
|
16081
|
-
'prototype',
|
|
16082
|
-
'then'
|
|
16083
|
-
],
|
|
16084
|
-
'%Promise_all%': [
|
|
16085
|
-
'Promise',
|
|
16086
|
-
'all'
|
|
16087
|
-
],
|
|
16088
|
-
'%Promise_reject%': [
|
|
16089
|
-
'Promise',
|
|
16090
|
-
'reject'
|
|
16091
|
-
],
|
|
16092
|
-
'%Promise_resolve%': [
|
|
16093
|
-
'Promise',
|
|
16094
|
-
'resolve'
|
|
16095
|
-
],
|
|
16096
|
-
'%RangeErrorPrototype%': [
|
|
16097
|
-
'RangeError',
|
|
16098
|
-
'prototype'
|
|
16099
|
-
],
|
|
16100
|
-
'%ReferenceErrorPrototype%': [
|
|
16101
|
-
'ReferenceError',
|
|
16102
|
-
'prototype'
|
|
16103
|
-
],
|
|
16104
|
-
'%RegExpPrototype%': [
|
|
16105
|
-
'RegExp',
|
|
16106
|
-
'prototype'
|
|
16107
|
-
],
|
|
16108
|
-
'%SetPrototype%': [
|
|
16109
|
-
'Set',
|
|
16110
|
-
'prototype'
|
|
16111
|
-
],
|
|
16112
|
-
'%SharedArrayBufferPrototype%': [
|
|
16113
|
-
'SharedArrayBuffer',
|
|
16114
|
-
'prototype'
|
|
16115
|
-
],
|
|
16116
|
-
'%StringPrototype%': [
|
|
16117
|
-
'String',
|
|
16118
|
-
'prototype'
|
|
16119
|
-
],
|
|
16120
|
-
'%SymbolPrototype%': [
|
|
16121
|
-
'Symbol',
|
|
16122
|
-
'prototype'
|
|
16123
|
-
],
|
|
16124
|
-
'%SyntaxErrorPrototype%': [
|
|
16125
|
-
'SyntaxError',
|
|
16126
|
-
'prototype'
|
|
16127
|
-
],
|
|
16128
|
-
'%TypedArrayPrototype%': [
|
|
16129
|
-
'TypedArray',
|
|
16130
|
-
'prototype'
|
|
16131
|
-
],
|
|
16132
|
-
'%TypeErrorPrototype%': [
|
|
16133
|
-
'TypeError',
|
|
16134
|
-
'prototype'
|
|
16135
|
-
],
|
|
16136
|
-
'%Uint8ArrayPrototype%': [
|
|
16137
|
-
'Uint8Array',
|
|
16138
|
-
'prototype'
|
|
16139
|
-
],
|
|
16140
|
-
'%Uint8ClampedArrayPrototype%': [
|
|
16141
|
-
'Uint8ClampedArray',
|
|
16142
|
-
'prototype'
|
|
16143
|
-
],
|
|
16144
|
-
'%Uint16ArrayPrototype%': [
|
|
16145
|
-
'Uint16Array',
|
|
16146
|
-
'prototype'
|
|
16147
|
-
],
|
|
16148
|
-
'%Uint32ArrayPrototype%': [
|
|
16149
|
-
'Uint32Array',
|
|
16150
|
-
'prototype'
|
|
16151
|
-
],
|
|
16152
|
-
'%URIErrorPrototype%': [
|
|
16153
|
-
'URIError',
|
|
16154
|
-
'prototype'
|
|
16155
|
-
],
|
|
16156
|
-
'%WeakMapPrototype%': [
|
|
16157
|
-
'WeakMap',
|
|
16158
|
-
'prototype'
|
|
16159
|
-
],
|
|
16160
|
-
'%WeakSetPrototype%': [
|
|
16161
|
-
'WeakSet',
|
|
16162
|
-
'prototype'
|
|
16163
|
-
]
|
|
16164
|
-
};
|
|
16165
|
-
var bind = __webpack_require__("../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js");
|
|
16166
|
-
var hasOwn = __webpack_require__("../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js");
|
|
16167
|
-
var $concat = bind.call($call, Array.prototype.concat);
|
|
16168
|
-
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
16169
|
-
var $replace = bind.call($call, String.prototype.replace);
|
|
16170
|
-
var $strSlice = bind.call($call, String.prototype.slice);
|
|
16171
|
-
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
16172
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
16173
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
16174
|
-
var stringToPath = function(string) {
|
|
16175
|
-
var first = $strSlice(string, 0, 1);
|
|
16176
|
-
var last = $strSlice(string, -1);
|
|
16177
|
-
if ('%' === first && '%' !== last) throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
16178
|
-
if ('%' === last && '%' !== first) throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
16179
|
-
var result = [];
|
|
16180
|
-
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
16181
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
16182
|
-
});
|
|
16183
|
-
return result;
|
|
16184
|
-
};
|
|
16185
|
-
var getBaseIntrinsic = function(name, allowMissing) {
|
|
16186
|
-
var intrinsicName = name;
|
|
16187
|
-
var alias;
|
|
16188
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
16189
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
16190
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
16191
|
-
}
|
|
16192
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
16193
|
-
var value = INTRINSICS[intrinsicName];
|
|
16194
|
-
if (value === needsEval) value = doEval(intrinsicName);
|
|
16195
|
-
if (void 0 === value && !allowMissing) throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
16196
|
-
return {
|
|
16197
|
-
alias: alias,
|
|
16198
|
-
name: intrinsicName,
|
|
16199
|
-
value: value
|
|
16200
|
-
};
|
|
16201
|
-
}
|
|
16202
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
16203
|
-
};
|
|
16204
|
-
module.exports = function(name, allowMissing) {
|
|
16205
|
-
if ('string' != typeof name || 0 === name.length) throw new $TypeError('intrinsic name must be a non-empty string');
|
|
16206
|
-
if (arguments.length > 1 && 'boolean' != typeof allowMissing) throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
16207
|
-
if (null === $exec(/^%?[^%]*%?$/, name)) throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
16208
|
-
var parts = stringToPath(name);
|
|
16209
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
16210
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
16211
|
-
var intrinsicRealName = intrinsic.name;
|
|
16212
|
-
var value = intrinsic.value;
|
|
16213
|
-
var skipFurtherCaching = false;
|
|
16214
|
-
var alias = intrinsic.alias;
|
|
16215
|
-
if (alias) {
|
|
16216
|
-
intrinsicBaseName = alias[0];
|
|
16217
|
-
$spliceApply(parts, $concat([
|
|
16218
|
-
0,
|
|
16219
|
-
1
|
|
16220
|
-
], alias));
|
|
16221
|
-
}
|
|
16222
|
-
for(var i = 1, isOwn = true; i < parts.length; i += 1){
|
|
16223
|
-
var part = parts[i];
|
|
16224
|
-
var first = $strSlice(part, 0, 1);
|
|
16225
|
-
var last = $strSlice(part, -1);
|
|
16226
|
-
if (('"' === first || "'" === first || '`' === first || '"' === last || "'" === last || '`' === last) && first !== last) throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
16227
|
-
if ('constructor' === part || !isOwn) skipFurtherCaching = true;
|
|
16228
|
-
intrinsicBaseName += '.' + part;
|
|
16229
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
16230
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) value = INTRINSICS[intrinsicRealName];
|
|
16231
|
-
else if (null != value) {
|
|
16232
|
-
if (!(part in value)) {
|
|
16233
|
-
if (!allowMissing) throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
16234
|
-
return;
|
|
16235
|
-
}
|
|
16236
|
-
if ($gOPD && i + 1 >= parts.length) {
|
|
16237
|
-
var desc = $gOPD(value, part);
|
|
16238
|
-
isOwn = !!desc;
|
|
16239
|
-
value = isOwn && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[part];
|
|
16240
|
-
} else {
|
|
16241
|
-
isOwn = hasOwn(value, part);
|
|
16242
|
-
value = value[part];
|
|
16243
|
-
}
|
|
16244
|
-
if (isOwn && !skipFurtherCaching) INTRINSICS[intrinsicRealName] = value;
|
|
16245
|
-
}
|
|
16246
|
-
}
|
|
16247
|
-
return value;
|
|
16248
|
-
};
|
|
16249
|
-
},
|
|
16250
15788
|
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
16251
15789
|
var $Object = __webpack_require__("../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js");
|
|
16252
15790
|
module.exports = $Object.getPrototypeOf || null;
|
|
@@ -29063,7 +28601,7 @@ __webpack_require__.add({
|
|
|
29063
28601
|
};
|
|
29064
28602
|
},
|
|
29065
28603
|
"../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
29066
|
-
var GetIntrinsic = __webpack_require__("../../node_modules/.pnpm/get-intrinsic@1.3.
|
|
28604
|
+
var GetIntrinsic = __webpack_require__("../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js");
|
|
29067
28605
|
var define1 = __webpack_require__("../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js");
|
|
29068
28606
|
var hasDescriptors = __webpack_require__("../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js")();
|
|
29069
28607
|
var gOPD = __webpack_require__("../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js");
|
|
@@ -53637,11 +53175,6 @@ const getSwcLoaderOptions = (o, composeOptions)=>{
|
|
|
53637
53175
|
const { rspackExperiments } = options;
|
|
53638
53176
|
if (rspackExperiments) {
|
|
53639
53177
|
if (rspackExperiments.import || rspackExperiments.pluginImport) rspackExperiments.import = resolvePluginImport(rspackExperiments.import || rspackExperiments.pluginImport);
|
|
53640
|
-
if (rspackExperiments.collectTypeScriptInfo) {
|
|
53641
|
-
deprecate('`rspackExperiments.collectTypeScriptInfo` is deprecated and will be removed in Rspack v2.0. Use top-level `collectTypeScriptInfo` instead.');
|
|
53642
|
-
if (!options.collectTypeScriptInfo) options.collectTypeScriptInfo = resolveCollectTypeScriptInfo(rspackExperiments.collectTypeScriptInfo);
|
|
53643
|
-
delete rspackExperiments.collectTypeScriptInfo;
|
|
53644
|
-
}
|
|
53645
53178
|
}
|
|
53646
53179
|
}
|
|
53647
53180
|
return options;
|
|
@@ -53744,35 +53277,6 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].NormalModule.p
|
|
|
53744
53277
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
53745
53278
|
}
|
|
53746
53279
|
});
|
|
53747
|
-
const createFakeHook = (fakeHook, message, code)=>Object.freeze(Object.assign(message && code ? deprecateAllProperties(fakeHook, message, code) : fakeHook, {
|
|
53748
|
-
_fakeHook: true
|
|
53749
|
-
}));
|
|
53750
|
-
const deprecateAllProperties = (obj, message, code)=>{
|
|
53751
|
-
const newObj = {};
|
|
53752
|
-
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
53753
|
-
for (const name of Object.keys(descriptors)){
|
|
53754
|
-
const descriptor = descriptors[name];
|
|
53755
|
-
if ('function' == typeof descriptor.value) Object.defineProperty(newObj, name, {
|
|
53756
|
-
...descriptor,
|
|
53757
|
-
value: util_0_default().deprecate(descriptor.value, message, code)
|
|
53758
|
-
});
|
|
53759
|
-
else if (descriptor.get || descriptor.set) Object.defineProperty(newObj, name, {
|
|
53760
|
-
...descriptor,
|
|
53761
|
-
get: descriptor.get && util_0_default().deprecate(descriptor.get, message, code),
|
|
53762
|
-
set: descriptor.set && util_0_default().deprecate(descriptor.set, message, code)
|
|
53763
|
-
});
|
|
53764
|
-
else {
|
|
53765
|
-
let value = descriptor.value;
|
|
53766
|
-
Object.defineProperty(newObj, name, {
|
|
53767
|
-
configurable: descriptor.configurable,
|
|
53768
|
-
enumerable: descriptor.enumerable,
|
|
53769
|
-
get: util_0_default().deprecate(()=>value, message, code),
|
|
53770
|
-
set: descriptor.writable ? util_0_default().deprecate((v)=>value = v, message, code) : void 0
|
|
53771
|
-
});
|
|
53772
|
-
}
|
|
53773
|
-
}
|
|
53774
|
-
return newObj;
|
|
53775
|
-
};
|
|
53776
53280
|
Object.defineProperty(external_rspack_wasi_browser_js_["default"].NormalModule, 'getCompilationHooks', {
|
|
53777
53281
|
enumerable: true,
|
|
53778
53282
|
configurable: true,
|
|
@@ -53786,14 +53290,6 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].NormalModule,
|
|
|
53786
53290
|
'loaderContext',
|
|
53787
53291
|
'module'
|
|
53788
53292
|
]),
|
|
53789
|
-
readResourceForScheme: new HookMap((scheme)=>{
|
|
53790
|
-
const hook = hooks.readResource.for(scheme);
|
|
53791
|
-
return createFakeHook({
|
|
53792
|
-
tap: (options, fn)=>hook.tap(options, (loaderContext)=>fn(loaderContext.resource)),
|
|
53793
|
-
tapAsync: (options, fn)=>hook.tapAsync(options, (loaderContext, callback)=>fn(loaderContext.resource, callback)),
|
|
53794
|
-
tapPromise: (options, fn)=>hook.tapPromise(options, (loaderContext)=>fn(loaderContext.resource))
|
|
53795
|
-
});
|
|
53796
|
-
}),
|
|
53797
53293
|
readResource: new HookMap(()=>new AsyncSeriesBailHook([
|
|
53798
53294
|
'loaderContext'
|
|
53799
53295
|
]))
|
|
@@ -58525,7 +58021,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
58525
58021
|
});
|
|
58526
58022
|
D(output, 'bundlerInfo', {});
|
|
58527
58023
|
if ('object' == typeof output.bundlerInfo) {
|
|
58528
|
-
D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
58024
|
+
D(output.bundlerInfo, 'version', "2.0.0-beta.2");
|
|
58529
58025
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
58530
58026
|
D(output.bundlerInfo, 'force', !output.library);
|
|
58531
58027
|
}
|
|
@@ -60186,7 +59682,7 @@ class MultiStats {
|
|
|
60186
59682
|
return obj;
|
|
60187
59683
|
});
|
|
60188
59684
|
if (childOptions.version) {
|
|
60189
|
-
obj.rspackVersion = "2.0.0-beta.
|
|
59685
|
+
obj.rspackVersion = "2.0.0-beta.2";
|
|
60190
59686
|
obj.version = "5.75.0";
|
|
60191
59687
|
}
|
|
60192
59688
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -61872,7 +61368,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61872
61368
|
},
|
|
61873
61369
|
version: (object)=>{
|
|
61874
61370
|
object.version = "5.75.0";
|
|
61875
|
-
object.rspackVersion = "2.0.0-beta.
|
|
61371
|
+
object.rspackVersion = "2.0.0-beta.2";
|
|
61876
61372
|
},
|
|
61877
61373
|
env: (object, _compilation, _context, { _env })=>{
|
|
61878
61374
|
object.env = _env;
|
|
@@ -66663,7 +66159,7 @@ function transformSync(source, options) {
|
|
|
66663
66159
|
const _options = JSON.stringify(options || {});
|
|
66664
66160
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
66665
66161
|
}
|
|
66666
|
-
const exports_rspackVersion = "2.0.0-beta.
|
|
66162
|
+
const exports_rspackVersion = "2.0.0-beta.2";
|
|
66667
66163
|
const exports_version = "5.75.0";
|
|
66668
66164
|
const exports_WebpackError = Error;
|
|
66669
66165
|
const exports_config = {
|
package/package.json
CHANGED