@rspack-canary/browser 1.6.8-canary-02b3377e-20251215174244 → 1.6.8-canary-2fd81281-20251216180302
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/Compilation.d.ts +24 -4
- package/dist/Resolver.d.ts +2 -2
- package/dist/index.mjs +69 -36
- package/dist/lib/EntryOptionPlugin.d.ts +1 -1
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/util/fake.d.ts +6 -1
- package/package.json +1 -1
package/dist/Compilation.d.ts
CHANGED
|
@@ -289,9 +289,14 @@ export declare class Compilation {
|
|
|
289
289
|
getLogger(name: string | (() => string)): Logger;
|
|
290
290
|
fileDependencies: {
|
|
291
291
|
[Symbol.iterator](): Generator<string, void, unknown>;
|
|
292
|
-
has(dep: string)
|
|
292
|
+
has: (dep: string) => boolean;
|
|
293
293
|
add: (dep: string) => void;
|
|
294
294
|
addAll: (deps: Iterable<string>) => void;
|
|
295
|
+
delete: (dep: string) => boolean;
|
|
296
|
+
keys(): SetIterator<string>;
|
|
297
|
+
values(): SetIterator<string>;
|
|
298
|
+
entries(): SetIterator<[string, string]>;
|
|
299
|
+
readonly size: number;
|
|
295
300
|
};
|
|
296
301
|
get __internal__addedFileDependencies(): string[];
|
|
297
302
|
get __internal__removedFileDependencies(): string[];
|
|
@@ -301,21 +306,36 @@ export declare class Compilation {
|
|
|
301
306
|
get __internal__removedMissingDependencies(): string[];
|
|
302
307
|
contextDependencies: {
|
|
303
308
|
[Symbol.iterator](): Generator<string, void, unknown>;
|
|
304
|
-
has(dep: string)
|
|
309
|
+
has: (dep: string) => boolean;
|
|
305
310
|
add: (dep: string) => void;
|
|
306
311
|
addAll: (deps: Iterable<string>) => void;
|
|
312
|
+
delete: (dep: string) => boolean;
|
|
313
|
+
keys(): SetIterator<string>;
|
|
314
|
+
values(): SetIterator<string>;
|
|
315
|
+
entries(): SetIterator<[string, string]>;
|
|
316
|
+
readonly size: number;
|
|
307
317
|
};
|
|
308
318
|
missingDependencies: {
|
|
309
319
|
[Symbol.iterator](): Generator<string, void, unknown>;
|
|
310
|
-
has(dep: string)
|
|
320
|
+
has: (dep: string) => boolean;
|
|
311
321
|
add: (dep: string) => void;
|
|
312
322
|
addAll: (deps: Iterable<string>) => void;
|
|
323
|
+
delete: (dep: string) => boolean;
|
|
324
|
+
keys(): SetIterator<string>;
|
|
325
|
+
values(): SetIterator<string>;
|
|
326
|
+
entries(): SetIterator<[string, string]>;
|
|
327
|
+
readonly size: number;
|
|
313
328
|
};
|
|
314
329
|
buildDependencies: {
|
|
315
330
|
[Symbol.iterator](): Generator<string, void, unknown>;
|
|
316
|
-
has(dep: string)
|
|
331
|
+
has: (dep: string) => boolean;
|
|
317
332
|
add: (dep: string) => void;
|
|
318
333
|
addAll: (deps: Iterable<string>) => void;
|
|
334
|
+
delete: (dep: string) => boolean;
|
|
335
|
+
keys(): SetIterator<string>;
|
|
336
|
+
values(): SetIterator<string>;
|
|
337
|
+
entries(): SetIterator<[string, string]>;
|
|
338
|
+
readonly size: number;
|
|
319
339
|
};
|
|
320
340
|
getStats(): Stats;
|
|
321
341
|
createChildCompiler(name: string, outputOptions: OutputNormalized, plugins: RspackPluginInstance[]): Compiler;
|
package/dist/Resolver.d.ts
CHANGED
|
@@ -25,6 +25,6 @@ export interface ResolveRequest {
|
|
|
25
25
|
export declare class Resolver {
|
|
26
26
|
#private;
|
|
27
27
|
constructor(binding: binding.JsResolver);
|
|
28
|
-
resolveSync(
|
|
29
|
-
resolve(
|
|
28
|
+
resolveSync(_context: object, path: string, request: string): string | false;
|
|
29
|
+
resolve(_context: object, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void;
|
|
30
30
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -51806,22 +51806,49 @@ class MergeCaller {
|
|
|
51806
51806
|
}
|
|
51807
51807
|
function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
51808
51808
|
const addDepsCaller = new MergeCaller(addDeps);
|
|
51809
|
+
const deletedDeps = new Set();
|
|
51810
|
+
const hasDep = (dep)=>{
|
|
51811
|
+
if (deletedDeps.has(dep)) return false;
|
|
51812
|
+
return addDepsCaller.pendingData().includes(dep) || getDeps().includes(dep);
|
|
51813
|
+
};
|
|
51814
|
+
const getAllDeps = ()=>{
|
|
51815
|
+
const deps = new Set([
|
|
51816
|
+
...getDeps(),
|
|
51817
|
+
...addDepsCaller.pendingData()
|
|
51818
|
+
]);
|
|
51819
|
+
for (const deleted of deletedDeps)deps.delete(deleted);
|
|
51820
|
+
return deps;
|
|
51821
|
+
};
|
|
51809
51822
|
return {
|
|
51810
51823
|
*[Symbol.iterator] () {
|
|
51811
|
-
const deps =
|
|
51812
|
-
...getDeps(),
|
|
51813
|
-
...addDepsCaller.pendingData()
|
|
51814
|
-
]);
|
|
51824
|
+
const deps = getAllDeps();
|
|
51815
51825
|
for (const dep of deps)yield dep;
|
|
51816
51826
|
},
|
|
51817
|
-
has
|
|
51818
|
-
return addDepsCaller.pendingData().includes(dep) || getDeps().includes(dep);
|
|
51819
|
-
},
|
|
51827
|
+
has: hasDep,
|
|
51820
51828
|
add: (dep)=>{
|
|
51829
|
+
deletedDeps.delete(dep);
|
|
51821
51830
|
addDepsCaller.push(dep);
|
|
51822
51831
|
},
|
|
51823
51832
|
addAll: (deps)=>{
|
|
51833
|
+
for (const dep of deps)deletedDeps.delete(dep);
|
|
51824
51834
|
addDepsCaller.push(...deps);
|
|
51835
|
+
},
|
|
51836
|
+
delete: (dep)=>{
|
|
51837
|
+
const hadDep = hasDep(dep);
|
|
51838
|
+
if (hadDep) deletedDeps.add(dep);
|
|
51839
|
+
return hadDep;
|
|
51840
|
+
},
|
|
51841
|
+
keys () {
|
|
51842
|
+
return getAllDeps().keys();
|
|
51843
|
+
},
|
|
51844
|
+
values () {
|
|
51845
|
+
return getAllDeps().values();
|
|
51846
|
+
},
|
|
51847
|
+
entries () {
|
|
51848
|
+
return getAllDeps().entries();
|
|
51849
|
+
},
|
|
51850
|
+
get size () {
|
|
51851
|
+
return getAllDeps().size;
|
|
51825
51852
|
}
|
|
51826
51853
|
};
|
|
51827
51854
|
}
|
|
@@ -52595,7 +52622,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
52595
52622
|
processAssetsHook.tap(getOptions(options), ()=>fn(...getArgs()));
|
|
52596
52623
|
},
|
|
52597
52624
|
tapAsync: (options, fn)=>{
|
|
52598
|
-
processAssetsHook.tapAsync(getOptions(options), (
|
|
52625
|
+
processAssetsHook.tapAsync(getOptions(options), (_assets, callback)=>fn(...getArgs(), callback));
|
|
52599
52626
|
},
|
|
52600
52627
|
tapPromise: (options, fn)=>{
|
|
52601
52628
|
processAssetsHook.tapPromise(getOptions(options), ()=>fn(...getArgs()));
|
|
@@ -53220,7 +53247,7 @@ class EntryOptionPlugin {
|
|
|
53220
53247
|
for (const entry of desc.import)new EntryPlugin(context, entry, options).apply(compiler);
|
|
53221
53248
|
}
|
|
53222
53249
|
}
|
|
53223
|
-
static entryDescriptionToOptions(
|
|
53250
|
+
static entryDescriptionToOptions(_compiler, name, desc) {
|
|
53224
53251
|
const options = {
|
|
53225
53252
|
name,
|
|
53226
53253
|
filename: desc.filename,
|
|
@@ -55559,13 +55586,13 @@ function getRawParserOptionsMap(parser) {
|
|
|
55559
55586
|
return Object.fromEntries(Object.entries(parser).map(([k, v])=>[
|
|
55560
55587
|
k,
|
|
55561
55588
|
getRawParserOptions(v, k)
|
|
55562
|
-
]).filter(([
|
|
55589
|
+
]).filter(([_, v])=>void 0 !== v));
|
|
55563
55590
|
}
|
|
55564
55591
|
function getRawGeneratorOptionsMap(generator) {
|
|
55565
55592
|
return Object.fromEntries(Object.entries(generator).map(([k, v])=>[
|
|
55566
55593
|
k,
|
|
55567
55594
|
getRawGeneratorOptions(v, k)
|
|
55568
|
-
]).filter(([
|
|
55595
|
+
]).filter(([_, v])=>void 0 !== v));
|
|
55569
55596
|
}
|
|
55570
55597
|
function getRawParserOptions(parser, type) {
|
|
55571
55598
|
if ("asset" === type) return {
|
|
@@ -58077,7 +58104,10 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
58077
58104
|
F(options, "devtool", ()=>development ? "eval" : false);
|
|
58078
58105
|
D(options, "watch", false);
|
|
58079
58106
|
D(options, "profile", false);
|
|
58080
|
-
D(options, "lazyCompilation",
|
|
58107
|
+
D(options, "lazyCompilation", {
|
|
58108
|
+
imports: true,
|
|
58109
|
+
entries: false
|
|
58110
|
+
});
|
|
58081
58111
|
D(options, "bail", false);
|
|
58082
58112
|
F(options, "cache", ()=>development);
|
|
58083
58113
|
if (false === options.cache) options.experiments.cache = false;
|
|
@@ -58108,9 +58138,7 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
58108
58138
|
targetProperties,
|
|
58109
58139
|
isAffectedByBrowserslist: void 0 === target || "string" == typeof target && target.startsWith("browserslist") || Array.isArray(target) && target.some((target)=>target.startsWith("browserslist")),
|
|
58110
58140
|
outputModule: options.experiments.outputModule,
|
|
58111
|
-
|
|
58112
|
-
entry: options.entry,
|
|
58113
|
-
futureDefaults: options.experiments.futureDefaults
|
|
58141
|
+
entry: options.entry
|
|
58114
58142
|
});
|
|
58115
58143
|
applybundlerInfoDefaults(options.experiments.rspackFuture, options.output.library);
|
|
58116
58144
|
applyExternalsPresetsDefaults(options.externalsPresets, {
|
|
@@ -58192,7 +58220,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
58192
58220
|
if ("object" == typeof rspackFuture) {
|
|
58193
58221
|
D(rspackFuture, "bundlerInfo", {});
|
|
58194
58222
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
58195
|
-
D(rspackFuture.bundlerInfo, "version", "1.6.8-canary-
|
|
58223
|
+
D(rspackFuture.bundlerInfo, "version", "1.6.8-canary-2fd81281-20251216180302");
|
|
58196
58224
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
58197
58225
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
58198
58226
|
}
|
|
@@ -58397,11 +58425,16 @@ const applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProp
|
|
|
58397
58425
|
type: "json"
|
|
58398
58426
|
},
|
|
58399
58427
|
type: "json"
|
|
58428
|
+
}, {
|
|
58429
|
+
with: {
|
|
58430
|
+
type: "text"
|
|
58431
|
+
},
|
|
58432
|
+
type: "asset/source"
|
|
58400
58433
|
});
|
|
58401
58434
|
return rules;
|
|
58402
58435
|
});
|
|
58403
58436
|
};
|
|
58404
|
-
const applyOutputDefaults = (output, { context, outputModule, targetProperties: tp, isAffectedByBrowserslist,
|
|
58437
|
+
const applyOutputDefaults = (output, { context, outputModule, targetProperties: tp, isAffectedByBrowserslist, entry })=>{
|
|
58405
58438
|
const getLibraryName = (library)=>{
|
|
58406
58439
|
const libraryName = "object" == typeof library && library && !Array.isArray(library) && "type" in library ? library.name : library;
|
|
58407
58440
|
if (Array.isArray(libraryName)) return libraryName.join(".");
|
|
@@ -58410,7 +58443,7 @@ const applyOutputDefaults = (output, { context, outputModule, targetProperties:
|
|
|
58410
58443
|
return "";
|
|
58411
58444
|
};
|
|
58412
58445
|
F(output, "uniqueName", ()=>{
|
|
58413
|
-
const libraryName = getLibraryName(output.library).replace(/^\[(\\*[\w:]+\\*)\](\.)|(\.)\[(\\*[\w:]+\\*)\](?=\.|$)|\[(\\*[\w:]+\\*)\]/g, (
|
|
58446
|
+
const libraryName = getLibraryName(output.library).replace(/^\[(\\*[\w:]+\\*)\](\.)|(\.)\[(\\*[\w:]+\\*)\](?=\.|$)|\[(\\*[\w:]+\\*)\]/g, (_, a, d1, d2, b, c)=>{
|
|
58414
58447
|
const content = a || b || c;
|
|
58415
58448
|
return content.startsWith("\\") && content.endsWith("\\") ? `${d2 || ""}[${content.slice(1, -1)}]${d1 || ""}` : "";
|
|
58416
58449
|
});
|
|
@@ -59539,7 +59572,7 @@ class ConcurrentCompilationError extends Error {
|
|
|
59539
59572
|
}
|
|
59540
59573
|
}
|
|
59541
59574
|
function rmrf(fs, p, callback) {
|
|
59542
|
-
fs.stat(p, (err, stats)=>{
|
|
59575
|
+
(fs.lstat || fs.stat)(p, (err, stats)=>{
|
|
59543
59576
|
if (err) {
|
|
59544
59577
|
if ("ENOENT" === err.code) return callback();
|
|
59545
59578
|
return callback(err);
|
|
@@ -59791,7 +59824,7 @@ class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
|
|
|
59791
59824
|
readFn(fd, {
|
|
59792
59825
|
position,
|
|
59793
59826
|
length
|
|
59794
|
-
}, (err,
|
|
59827
|
+
}, (err, _bytesRead, buffer)=>{
|
|
59795
59828
|
err ? resolve(err) : resolve(buffer);
|
|
59796
59829
|
});
|
|
59797
59830
|
});
|
|
@@ -60255,10 +60288,10 @@ function Resolver_class_private_field_set(receiver, privateMap, value) {
|
|
|
60255
60288
|
}
|
|
60256
60289
|
var _binding = /*#__PURE__*/ new WeakMap();
|
|
60257
60290
|
class Resolver {
|
|
60258
|
-
resolveSync(
|
|
60291
|
+
resolveSync(_context, path, request) {
|
|
60259
60292
|
return Resolver_class_private_field_get(this, _binding).resolveSync(path, request) ?? false;
|
|
60260
60293
|
}
|
|
60261
|
-
resolve(
|
|
60294
|
+
resolve(_context, path, request, resolveContext, callback) {
|
|
60262
60295
|
Resolver_class_private_field_get(this, _binding).resolve(path, request, (error, text)=>{
|
|
60263
60296
|
if (error) return void callback(error);
|
|
60264
60297
|
const req = text ? JSON.parse(text) : void 0;
|
|
@@ -61236,10 +61269,10 @@ function VirtualModulesPlugin_class_private_field_set(receiver, privateMap, valu
|
|
|
61236
61269
|
}
|
|
61237
61270
|
const VirtualModulesPlugin_PLUGIN_NAME = "VirtualModulesPlugin";
|
|
61238
61271
|
const VFILES_BY_COMPILER = new WeakMap();
|
|
61239
|
-
var _staticModules = /*#__PURE__*/ new WeakMap(),
|
|
61272
|
+
var _staticModules = /*#__PURE__*/ new WeakMap(), VirtualModulesPlugin_compiler = /*#__PURE__*/ new WeakMap(), _store = /*#__PURE__*/ new WeakMap();
|
|
61240
61273
|
class VirtualModulesPlugin {
|
|
61241
61274
|
apply(compiler) {
|
|
61242
|
-
VirtualModulesPlugin_class_private_field_set(this,
|
|
61275
|
+
VirtualModulesPlugin_class_private_field_set(this, VirtualModulesPlugin_compiler, compiler);
|
|
61243
61276
|
compiler.hooks.afterEnvironment.tap(VirtualModulesPlugin_PLUGIN_NAME, ()=>{
|
|
61244
61277
|
const record = VFILES_BY_COMPILER.get(compiler) || {};
|
|
61245
61278
|
if (VirtualModulesPlugin_class_private_field_get(this, _staticModules)) for (const [filePath, content] of Object.entries(VirtualModulesPlugin_class_private_field_get(this, _staticModules))){
|
|
@@ -61250,15 +61283,15 @@ class VirtualModulesPlugin {
|
|
|
61250
61283
|
});
|
|
61251
61284
|
}
|
|
61252
61285
|
writeModule(filePath, contents) {
|
|
61253
|
-
if (!VirtualModulesPlugin_class_private_field_get(this,
|
|
61286
|
+
if (!VirtualModulesPlugin_class_private_field_get(this, VirtualModulesPlugin_compiler)) throw new Error("Plugin has not been initialized");
|
|
61254
61287
|
const store = this.getVirtualFileStore();
|
|
61255
|
-
const fullPath = path_browserify_default().resolve(VirtualModulesPlugin_class_private_field_get(this,
|
|
61288
|
+
const fullPath = path_browserify_default().resolve(VirtualModulesPlugin_class_private_field_get(this, VirtualModulesPlugin_compiler).context, filePath);
|
|
61256
61289
|
store.writeVirtualFileSync(fullPath, contents);
|
|
61257
|
-
notifyWatchers(VirtualModulesPlugin_class_private_field_get(this,
|
|
61290
|
+
notifyWatchers(VirtualModulesPlugin_class_private_field_get(this, VirtualModulesPlugin_compiler), fullPath, Date.now());
|
|
61258
61291
|
}
|
|
61259
61292
|
getVirtualFileStore() {
|
|
61260
61293
|
if (VirtualModulesPlugin_class_private_field_get(this, _store)) return VirtualModulesPlugin_class_private_field_get(this, _store);
|
|
61261
|
-
const store = VirtualModulesPlugin_class_private_field_get(this,
|
|
61294
|
+
const store = VirtualModulesPlugin_class_private_field_get(this, VirtualModulesPlugin_compiler)?.__internal__get_virtual_file_store();
|
|
61262
61295
|
if (!store) throw new Error("Virtual file store has not been initialized");
|
|
61263
61296
|
VirtualModulesPlugin_class_private_field_set(this, _store, store);
|
|
61264
61297
|
return store;
|
|
@@ -61278,7 +61311,7 @@ class VirtualModulesPlugin {
|
|
|
61278
61311
|
writable: true,
|
|
61279
61312
|
value: void 0
|
|
61280
61313
|
});
|
|
61281
|
-
VirtualModulesPlugin_class_private_field_init(this,
|
|
61314
|
+
VirtualModulesPlugin_class_private_field_init(this, VirtualModulesPlugin_compiler, {
|
|
61282
61315
|
writable: true,
|
|
61283
61316
|
value: void 0
|
|
61284
61317
|
});
|
|
@@ -62342,7 +62375,7 @@ class MultiStats {
|
|
|
62342
62375
|
return obj;
|
|
62343
62376
|
});
|
|
62344
62377
|
if (childOptions.version) {
|
|
62345
|
-
obj.rspackVersion = "1.6.8-canary-
|
|
62378
|
+
obj.rspackVersion = "1.6.8-canary-2fd81281-20251216180302";
|
|
62346
62379
|
obj.version = "5.75.0";
|
|
62347
62380
|
}
|
|
62348
62381
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -63658,7 +63691,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
63658
63691
|
},
|
|
63659
63692
|
version: (object)=>{
|
|
63660
63693
|
object.version = "5.75.0";
|
|
63661
|
-
object.rspackVersion = "1.6.8-canary-
|
|
63694
|
+
object.rspackVersion = "1.6.8-canary-2fd81281-20251216180302";
|
|
63662
63695
|
},
|
|
63663
63696
|
env: (object, _compilation, _context, { _env })=>{
|
|
63664
63697
|
object.env = _env;
|
|
@@ -63722,7 +63755,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
63722
63755
|
object.assets = limited.children;
|
|
63723
63756
|
object.filteredAssets = limited.filteredChildren;
|
|
63724
63757
|
},
|
|
63725
|
-
chunks: (object, compilation, context,
|
|
63758
|
+
chunks: (object, compilation, context, _options, factory)=>{
|
|
63726
63759
|
const { type, getStatsCompilation } = context;
|
|
63727
63760
|
const statsCompilation = getStatsCompilation(compilation);
|
|
63728
63761
|
const chunks = statsCompilation.chunks;
|
|
@@ -64349,8 +64382,8 @@ const NORMALIZER = {
|
|
|
64349
64382
|
value
|
|
64350
64383
|
] : [];
|
|
64351
64384
|
return array.map((filter)=>{
|
|
64352
|
-
if ("string" == typeof filter) return (
|
|
64353
|
-
if (filter instanceof RegExp) return (
|
|
64385
|
+
if ("string" == typeof filter) return (_warning, warningString)=>warningString.includes(filter);
|
|
64386
|
+
if (filter instanceof RegExp) return (_warning, warningString)=>filter.test(warningString);
|
|
64354
64387
|
if ("function" == typeof filter) return filter;
|
|
64355
64388
|
throw new Error(`Can only filter warnings with Strings or RegExps. (Given: ${filter})`);
|
|
64356
64389
|
});
|
|
@@ -66268,7 +66301,7 @@ class ModuleFederationPlugin {
|
|
|
66268
66301
|
}
|
|
66269
66302
|
function collectManifestExposes(exposes) {
|
|
66270
66303
|
if (!exposes) return;
|
|
66271
|
-
const parsed = parseOptions(exposes, (value
|
|
66304
|
+
const parsed = parseOptions(exposes, (value)=>({
|
|
66272
66305
|
import: Array.isArray(value) ? value : [
|
|
66273
66306
|
value
|
|
66274
66307
|
],
|
|
@@ -66795,7 +66828,7 @@ function transformSync(source, options) {
|
|
|
66795
66828
|
const _options = JSON.stringify(options || {});
|
|
66796
66829
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
66797
66830
|
}
|
|
66798
|
-
const exports_rspackVersion = "1.6.8-canary-
|
|
66831
|
+
const exports_rspackVersion = "1.6.8-canary-2fd81281-20251216180302";
|
|
66799
66832
|
const exports_version = "5.75.0";
|
|
66800
66833
|
const exports_WebpackError = Error;
|
|
66801
66834
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
|
@@ -28,6 +28,6 @@ export declare class EntryOptionPlugin {
|
|
|
28
28
|
* @param desc entry description
|
|
29
29
|
* @returns options for the entry
|
|
30
30
|
*/
|
|
31
|
-
static entryDescriptionToOptions(
|
|
31
|
+
static entryDescriptionToOptions(_compiler: Compiler, name: string, desc: EntryDescriptionNormalized): EntryOptions;
|
|
32
32
|
}
|
|
33
33
|
export default EntryOptionPlugin;
|
|
Binary file
|
package/dist/util/fake.d.ts
CHANGED
|
@@ -3,7 +3,12 @@ export type FakeHook<T> = T & {
|
|
|
3
3
|
};
|
|
4
4
|
export declare function createFakeCompilationDependencies(getDeps: () => string[], addDeps: (deps: string[]) => void): {
|
|
5
5
|
[Symbol.iterator](): Generator<string, void, unknown>;
|
|
6
|
-
has(dep: string)
|
|
6
|
+
has: (dep: string) => boolean;
|
|
7
7
|
add: (dep: string) => void;
|
|
8
8
|
addAll: (deps: Iterable<string>) => void;
|
|
9
|
+
delete: (dep: string) => boolean;
|
|
10
|
+
keys(): SetIterator<string>;
|
|
11
|
+
values(): SetIterator<string>;
|
|
12
|
+
entries(): SetIterator<[string, string]>;
|
|
13
|
+
readonly size: number;
|
|
9
14
|
};
|
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-2fd81281-20251216180302",
|
|
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.",
|