@rspack-canary/browser 1.4.12-canary-51b82a4d-20250815075104 → 1.4.12-canary-ed187241-20250817101254
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/BuildInfo.d.ts +3 -3
- package/dist/Chunk.d.ts +3 -3
- package/dist/ChunkGraph.d.ts +2 -2
- package/dist/Chunks.d.ts +2 -2
- package/dist/Compilation.d.ts +3 -3
- package/dist/Compiler.d.ts +1 -1
- package/dist/ConcatenatedModule.d.ts +1 -1
- package/dist/ContextModule.d.ts +1 -1
- package/dist/Diagnostics.d.ts +1 -1
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +1 -1
- package/dist/ExternalModule.d.ts +1 -1
- package/dist/FileSystem.d.ts +1 -1
- package/dist/Module.d.ts +3 -3
- package/dist/ModuleGraph.d.ts +1 -1
- package/dist/NativeWatchFileSystem.d.ts +1 -1
- package/dist/NormalModule.d.ts +2 -2
- package/dist/NormalModuleFactory.d.ts +1 -1
- package/dist/Resolver.d.ts +1 -1
- package/dist/ResolverFactory.d.ts +1 -1
- package/dist/RspackError.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/RuntimeModule.d.ts +1 -1
- package/dist/binding.d.ts +8 -0
- package/dist/browser/service.d.ts +23 -0
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +1 -1
- package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/index.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +2 -2
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/adapter.d.ts +1 -1
- package/dist/config/adapterRuleUse.d.ts +1 -1
- package/dist/config/types.d.ts +1 -1
- package/dist/container/ContainerPlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +3 -3
- package/dist/index.mjs +44 -53
- package/dist/lib/DllReferencePlugin.d.ts +1 -1
- package/dist/lib/WebpackError.d.ts +1 -1
- package/dist/loader-runner/index.d.ts +1 -1
- package/dist/loader-runner/worker.d.ts +1 -1
- package/dist/napi-binding.d.ts +3068 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/schema/config.d.ts +4 -4
- package/dist/schema/plugins.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/sharing/ProvideSharedPlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +1 -1
- package/dist/stats/statsFactoryUtils.d.ts +2 -2
- package/dist/swc.d.ts +1 -1
- package/dist/taps/compilation.d.ts +1 -1
- package/dist/taps/types.d.ts +1 -1
- package/dist/util/SplitChunkSize.d.ts +1 -1
- package/dist/util/source.d.ts +1 -1
- package/package.json +5 -6
package/dist/config/adapter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RawOptions } from "
|
|
1
|
+
import { type RawOptions } from "../binding";
|
|
2
2
|
import type { Compiler } from "../Compiler";
|
|
3
3
|
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction, type PitchLoaderDefinitionFunction } from "./adapterRuleUse";
|
|
4
4
|
import type { RspackOptionsNormalized } from "./normalization";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssetInfo, RawModuleRuleUse, RawOptions } from "
|
|
1
|
+
import type { AssetInfo, RawModuleRuleUse, RawOptions } from "../binding";
|
|
2
2
|
import type { Compilation } from "../Compilation";
|
|
3
3
|
import type { Compiler } from "../Compiler";
|
|
4
4
|
import { type LoaderObject } from "../loader-runner";
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssetInfo, RawFuncUseCtx } from "
|
|
1
|
+
import type { AssetInfo, RawFuncUseCtx } from "../binding";
|
|
2
2
|
import type { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
|
|
3
3
|
import type { ChunkGraph } from "../ChunkGraph";
|
|
4
4
|
import type { Compilation, PathData } from "../Compilation";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from "
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "../binding";
|
|
2
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
|
3
3
|
import type { Compiler } from "../Compiler";
|
|
4
4
|
import type { EntryRuntime, FilenameTemplate, LibraryOptions } from "../config";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from "
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "../binding";
|
|
2
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
|
3
3
|
import type { Compiler } from "../Compiler";
|
|
4
4
|
import type { ExternalsType } from "../config";
|
|
@@ -6,7 +6,7 @@ export declare const ModuleFederationRuntimePlugin: {
|
|
|
6
6
|
name: string;
|
|
7
7
|
_args: [options?: ModuleFederationRuntimeOptions | undefined];
|
|
8
8
|
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
9
|
-
raw(compiler: import("..").Compiler): import("
|
|
9
|
+
raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
|
|
10
10
|
apply(compiler: import("..").Compiler): void;
|
|
11
11
|
};
|
|
12
12
|
};
|
package/dist/exports.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
|
|
|
8
8
|
export { MultiCompiler } from "./MultiCompiler";
|
|
9
9
|
import { RspackOptionsApply } from "./rspackOptionsApply";
|
|
10
10
|
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
11
|
-
export type { ChunkGroup } from "
|
|
12
|
-
export { AsyncDependenciesBlock, Dependency, EntryDependency } from "
|
|
11
|
+
export type { ChunkGroup } from "./binding";
|
|
12
|
+
export { AsyncDependenciesBlock, Dependency, EntryDependency } from "./binding";
|
|
13
13
|
export type { Chunk } from "./Chunk";
|
|
14
14
|
export { ConcatenatedModule } from "./ConcatenatedModule";
|
|
15
15
|
export { ContextModule } from "./ContextModule";
|
|
@@ -133,7 +133,7 @@ export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as Lig
|
|
|
133
133
|
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
|
|
134
134
|
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
|
135
135
|
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
|
|
136
|
-
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from "
|
|
136
|
+
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from "./binding";
|
|
137
137
|
import { createNativePlugin } from "./builtin-plugin";
|
|
138
138
|
import { minify, minifySync, transform, transformSync } from "./swc";
|
|
139
139
|
import { VirtualModulesPlugin } from "./VirtualModulesPlugin";
|
package/dist/index.mjs
CHANGED
|
@@ -11800,7 +11800,7 @@ var __webpack_modules__ = {
|
|
|
11800
11800
|
},
|
|
11801
11801
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
11802
11802
|
var elliptic = exports;
|
|
11803
|
-
elliptic.version = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/package.json").
|
|
11803
|
+
elliptic.version = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/package.json").rE;
|
|
11804
11804
|
elliptic.utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
11805
11805
|
elliptic.rand = __webpack_require__("../../node_modules/.pnpm/brorand@1.1.0/node_modules/brorand/index.js");
|
|
11806
11806
|
elliptic.curve = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/index.js");
|
|
@@ -35092,7 +35092,7 @@ var __webpack_modules__ = {
|
|
|
35092
35092
|
},
|
|
35093
35093
|
"./src/util/require.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
35094
35094
|
__webpack_require__.d(__webpack_exports__, {
|
|
35095
|
-
|
|
35095
|
+
y: ()=>nonWebpackRequire
|
|
35096
35096
|
});
|
|
35097
35097
|
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/browser/fs.ts");
|
|
35098
35098
|
var _rspack_binding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@rspack/binding");
|
|
@@ -35104,25 +35104,19 @@ var __webpack_modules__ = {
|
|
|
35104
35104
|
node_fs__WEBPACK_IMPORTED_MODULE_0__["default"].readFile(loaderPath, {}, (err, data)=>{
|
|
35105
35105
|
if (err) return void reject(err);
|
|
35106
35106
|
const loaderCode = (null == data ? void 0 : data.toString()) || "";
|
|
35107
|
+
const codeUrl = URL.createObjectURL(new Blob([
|
|
35108
|
+
loaderCode
|
|
35109
|
+
], {
|
|
35110
|
+
type: "text/javascript"
|
|
35111
|
+
}));
|
|
35107
35112
|
try {
|
|
35108
|
-
const
|
|
35109
|
-
|
|
35110
|
-
|
|
35111
|
-
|
|
35112
|
-
|
|
35113
|
-
|
|
35114
|
-
|
|
35115
|
-
const wrapper = new Function("module", "exports", "require", loaderCode);
|
|
35116
|
-
wrapper(module, exports, createRequire);
|
|
35117
|
-
resolve(module.exports);
|
|
35118
|
-
} catch {
|
|
35119
|
-
const dataUrl = `data:text/javascript;base64,${btoa(loaderCode)}`;
|
|
35120
|
-
try {
|
|
35121
|
-
const modulePromise = eval(`import("${dataUrl}")`);
|
|
35122
|
-
modulePromise.then(resolve);
|
|
35123
|
-
} catch (e) {
|
|
35124
|
-
reject(e);
|
|
35125
|
-
}
|
|
35113
|
+
const modulePromise = eval(`import("${codeUrl}")`);
|
|
35114
|
+
modulePromise.then((module)=>{
|
|
35115
|
+
URL.revokeObjectURL(codeUrl);
|
|
35116
|
+
resolve(module);
|
|
35117
|
+
});
|
|
35118
|
+
} catch (e) {
|
|
35119
|
+
reject(e);
|
|
35126
35120
|
}
|
|
35127
35121
|
});
|
|
35128
35122
|
}).catch((err)=>reject(err));
|
|
@@ -35348,7 +35342,7 @@ var __webpack_modules__ = {
|
|
|
35348
35342
|
},
|
|
35349
35343
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/package.json": function(module) {
|
|
35350
35344
|
module.exports = {
|
|
35351
|
-
|
|
35345
|
+
rE: "6.6.1"
|
|
35352
35346
|
};
|
|
35353
35347
|
},
|
|
35354
35348
|
"../../node_modules/.pnpm/parse-asn1@5.1.7/node_modules/parse-asn1/aesid.json": function(module) {
|
|
@@ -39191,9 +39185,6 @@ class ModuleWarning extends lib_WebpackError {
|
|
|
39191
39185
|
this.details = err && "object" == typeof err && err.stack ? cleanUp(err.stack, err.name, err.message) : void 0;
|
|
39192
39186
|
}
|
|
39193
39187
|
}
|
|
39194
|
-
var service_RequestType = /*#__PURE__*/ function(RequestType) {
|
|
39195
|
-
return RequestType;
|
|
39196
|
-
}({});
|
|
39197
39188
|
async function service_run() {
|
|
39198
39189
|
throw new Error("Not support browser");
|
|
39199
39190
|
}
|
|
@@ -39207,7 +39198,7 @@ class LoadingLoaderError extends Error {
|
|
|
39207
39198
|
}
|
|
39208
39199
|
const LoaderLoadingError = LoadingLoaderError;
|
|
39209
39200
|
function loadLoader(loader, compiler, callback) {
|
|
39210
|
-
(0, util_require.
|
|
39201
|
+
(0, util_require.y)()(loader.path).then((module)=>{
|
|
39211
39202
|
handleResult(loader, module, callback);
|
|
39212
39203
|
}, callback);
|
|
39213
39204
|
}
|
|
@@ -39788,47 +39779,47 @@ async function runLoaders(compiler, context) {
|
|
|
39788
39779
|
return {
|
|
39789
39780
|
handleIncomingRequest (requestType, ...args) {
|
|
39790
39781
|
switch(requestType){
|
|
39791
|
-
case
|
|
39782
|
+
case "AddDependency":
|
|
39792
39783
|
loaderContext.addDependency(args[0]);
|
|
39793
39784
|
break;
|
|
39794
|
-
case
|
|
39785
|
+
case "AddContextDependency":
|
|
39795
39786
|
loaderContext.addContextDependency(args[0]);
|
|
39796
39787
|
break;
|
|
39797
|
-
case
|
|
39788
|
+
case "AddMissingDependency":
|
|
39798
39789
|
loaderContext.addMissingDependency(args[0]);
|
|
39799
39790
|
break;
|
|
39800
|
-
case
|
|
39791
|
+
case "AddBuildDependency":
|
|
39801
39792
|
loaderContext.addBuildDependency(args[0]);
|
|
39802
39793
|
break;
|
|
39803
|
-
case
|
|
39794
|
+
case "GetDependencies":
|
|
39804
39795
|
return loaderContext.getDependencies();
|
|
39805
|
-
case
|
|
39796
|
+
case "GetContextDependencies":
|
|
39806
39797
|
return loaderContext.getContextDependencies();
|
|
39807
|
-
case
|
|
39798
|
+
case "GetMissingDependencies":
|
|
39808
39799
|
return loaderContext.getMissingDependencies();
|
|
39809
|
-
case
|
|
39800
|
+
case "ClearDependencies":
|
|
39810
39801
|
loaderContext.clearDependencies();
|
|
39811
39802
|
break;
|
|
39812
|
-
case
|
|
39803
|
+
case "Resolve":
|
|
39813
39804
|
return new Promise((resolve, reject)=>{
|
|
39814
39805
|
loaderContext.resolve(args[0], args[1], (err, result)=>{
|
|
39815
39806
|
if (err) reject(err);
|
|
39816
39807
|
else resolve(result);
|
|
39817
39808
|
});
|
|
39818
39809
|
});
|
|
39819
|
-
case
|
|
39810
|
+
case "GetResolve":
|
|
39820
39811
|
return new Promise((resolve, reject)=>{
|
|
39821
39812
|
loaderContext.getResolve(args[0])(args[1], args[2], (err, result)=>{
|
|
39822
39813
|
if (err) reject(err);
|
|
39823
39814
|
else resolve(result);
|
|
39824
39815
|
});
|
|
39825
39816
|
});
|
|
39826
|
-
case
|
|
39817
|
+
case "GetLogger":
|
|
39827
39818
|
{
|
|
39828
39819
|
const [type, name, arg] = args;
|
|
39829
39820
|
loaderContext.getLogger(name)[type](...arg);
|
|
39830
39821
|
}
|
|
39831
|
-
case
|
|
39822
|
+
case "EmitError":
|
|
39832
39823
|
{
|
|
39833
39824
|
const workerError = args[0];
|
|
39834
39825
|
const error = new Error(workerError.message);
|
|
@@ -39837,7 +39828,7 @@ async function runLoaders(compiler, context) {
|
|
|
39837
39828
|
loaderContext.emitError(error);
|
|
39838
39829
|
break;
|
|
39839
39830
|
}
|
|
39840
|
-
case
|
|
39831
|
+
case "EmitWarning":
|
|
39841
39832
|
{
|
|
39842
39833
|
const workerError = args[0];
|
|
39843
39834
|
const error = new Error(workerError.message);
|
|
@@ -39846,27 +39837,27 @@ async function runLoaders(compiler, context) {
|
|
|
39846
39837
|
loaderContext.emitWarning(error);
|
|
39847
39838
|
break;
|
|
39848
39839
|
}
|
|
39849
|
-
case
|
|
39840
|
+
case "EmitFile":
|
|
39850
39841
|
{
|
|
39851
39842
|
const [name, content, sourceMap, assetInfo] = args;
|
|
39852
39843
|
loaderContext.emitFile(name, content, sourceMap, assetInfo);
|
|
39853
39844
|
break;
|
|
39854
39845
|
}
|
|
39855
|
-
case
|
|
39846
|
+
case "EmitDiagnostic":
|
|
39856
39847
|
{
|
|
39857
39848
|
const diagnostic = args[0];
|
|
39858
39849
|
loaderContext.experiments.emitDiagnostic(diagnostic);
|
|
39859
39850
|
break;
|
|
39860
39851
|
}
|
|
39861
|
-
case
|
|
39852
|
+
case "SetCacheable":
|
|
39862
39853
|
{
|
|
39863
39854
|
const cacheable = args[0];
|
|
39864
39855
|
loaderContext.cacheable(cacheable);
|
|
39865
39856
|
break;
|
|
39866
39857
|
}
|
|
39867
|
-
case
|
|
39858
|
+
case "ImportModule":
|
|
39868
39859
|
return loaderContext.importModule(args[0], args[1]);
|
|
39869
|
-
case
|
|
39860
|
+
case "UpdateLoaderObjects":
|
|
39870
39861
|
{
|
|
39871
39862
|
const updates = args[0];
|
|
39872
39863
|
loaderContext.loaders = loaderContext.loaders.map((item, index)=>{
|
|
@@ -39878,25 +39869,25 @@ async function runLoaders(compiler, context) {
|
|
|
39878
39869
|
});
|
|
39879
39870
|
break;
|
|
39880
39871
|
}
|
|
39881
|
-
case
|
|
39872
|
+
case "CompilationGetPath":
|
|
39882
39873
|
{
|
|
39883
39874
|
const filename = args[0];
|
|
39884
39875
|
const data = args[1];
|
|
39885
39876
|
return compiler._lastCompilation.getPath(filename, data);
|
|
39886
39877
|
}
|
|
39887
|
-
case
|
|
39878
|
+
case "CompilationGetPathWithInfo":
|
|
39888
39879
|
{
|
|
39889
39880
|
const filename = args[0];
|
|
39890
39881
|
const data = args[1];
|
|
39891
39882
|
return compiler._lastCompilation.getPathWithInfo(filename, data);
|
|
39892
39883
|
}
|
|
39893
|
-
case
|
|
39884
|
+
case "CompilationGetAssetPath":
|
|
39894
39885
|
{
|
|
39895
39886
|
const filename = args[0];
|
|
39896
39887
|
const data = args[1];
|
|
39897
39888
|
return compiler._lastCompilation.getAssetPath(filename, data);
|
|
39898
39889
|
}
|
|
39899
|
-
case
|
|
39890
|
+
case "CompilationGetAssetPathWithInfo":
|
|
39900
39891
|
{
|
|
39901
39892
|
const filename = args[0];
|
|
39902
39893
|
const data = args[1];
|
|
@@ -45081,7 +45072,7 @@ const HtmlRspackPluginImpl = base_create(external_rspack_wasi_browser_js_.Builti
|
|
|
45081
45072
|
const templateFilePath = path_browserify_default().resolve(context, filename);
|
|
45082
45073
|
if (!browser_fs["default"].existsSync(templateFilePath)) throw new Error(`HtmlRspackPlugin: could not load file \`${filename}\` from \`${context}\``);
|
|
45083
45074
|
try {
|
|
45084
|
-
const renderer = await (0, util_require.
|
|
45075
|
+
const renderer = await (0, util_require.y)()(templateFilePath);
|
|
45085
45076
|
if (false === c.templateParameters) return await renderer({});
|
|
45086
45077
|
return await renderer(generateRenderData(data));
|
|
45087
45078
|
} catch (e) {
|
|
@@ -45806,7 +45797,7 @@ class SubresourceIntegrityPlugin extends NativeSubresourceIntegrityPlugin {
|
|
|
45806
45797
|
});
|
|
45807
45798
|
});
|
|
45808
45799
|
}
|
|
45809
|
-
(0, util_require.
|
|
45800
|
+
(0, util_require.y)()(this.options.htmlPlugin).then(bindingHtmlHooks).catch((e)=>{
|
|
45810
45801
|
if (!isErrorWithCode(e) || "MODULE_NOT_FOUND" !== e.code) throw e;
|
|
45811
45802
|
});
|
|
45812
45803
|
}
|
|
@@ -47110,7 +47101,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
47110
47101
|
if ("object" == typeof rspackFuture) {
|
|
47111
47102
|
D(rspackFuture, "bundlerInfo", {});
|
|
47112
47103
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
47113
|
-
D(rspackFuture.bundlerInfo, "version", "1.4.12-canary-
|
|
47104
|
+
D(rspackFuture.bundlerInfo, "version", "1.4.12-canary-ed187241-20250817101254");
|
|
47114
47105
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
47115
47106
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
47116
47107
|
}
|
|
@@ -51195,7 +51186,7 @@ class MultiStats {
|
|
|
51195
51186
|
return obj;
|
|
51196
51187
|
});
|
|
51197
51188
|
if (childOptions.version) {
|
|
51198
|
-
obj.rspackVersion = "1.4.12-canary-
|
|
51189
|
+
obj.rspackVersion = "1.4.12-canary-ed187241-20250817101254";
|
|
51199
51190
|
obj.version = "5.75.0";
|
|
51200
51191
|
}
|
|
51201
51192
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -52505,7 +52496,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52505
52496
|
},
|
|
52506
52497
|
version: (object)=>{
|
|
52507
52498
|
object.version = "5.75.0";
|
|
52508
|
-
object.rspackVersion = "1.4.12-canary-
|
|
52499
|
+
object.rspackVersion = "1.4.12-canary-ed187241-20250817101254";
|
|
52509
52500
|
},
|
|
52510
52501
|
env: (object, _compilation, _context, { _env })=>{
|
|
52511
52502
|
object.env = _env;
|
|
@@ -56967,7 +56958,7 @@ function transformSync(source, options) {
|
|
|
56967
56958
|
const _options = JSON.stringify(options || {});
|
|
56968
56959
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56969
56960
|
}
|
|
56970
|
-
const exports_rspackVersion = "1.4.12-canary-
|
|
56961
|
+
const exports_rspackVersion = "1.4.12-canary-ed187241-20250817101254";
|
|
56971
56962
|
const exports_version = "5.75.0";
|
|
56972
56963
|
const exports_WebpackError = Error;
|
|
56973
56964
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { JsBuildMeta } from "
|
|
10
|
+
import type { JsBuildMeta } from "../binding";
|
|
11
11
|
import type { Compiler } from "../Compiler";
|
|
12
12
|
export type DllReferencePluginOptions = {
|
|
13
13
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { DependencyLocation } from "
|
|
10
|
+
import type { DependencyLocation } from "../binding";
|
|
11
11
|
import type { Chunk } from "../Chunk";
|
|
12
12
|
import type { Module } from "../Module";
|
|
13
13
|
export declare class WebpackError extends Error {
|