@rspack-canary/core 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.js +51 -30
- package/dist/lib/EntryOptionPlugin.d.ts +1 -1
- package/dist/util/fake.d.ts +6 -1
- package/package.json +2 -2
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.js
CHANGED
|
@@ -1187,20 +1187,35 @@ for(var __rspack_i in (()=>{
|
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
1190
|
-
let addDepsCaller = new MergeCaller(addDeps)
|
|
1190
|
+
let addDepsCaller = new MergeCaller(addDeps), deletedDeps = new Set(), hasDep = (dep)=>!deletedDeps.has(dep) && (addDepsCaller.pendingData().includes(dep) || getDeps().includes(dep)), getAllDeps = ()=>{
|
|
1191
|
+
let deps = new Set([
|
|
1192
|
+
...getDeps(),
|
|
1193
|
+
...addDepsCaller.pendingData()
|
|
1194
|
+
]);
|
|
1195
|
+
for (let deleted of deletedDeps)deps.delete(deleted);
|
|
1196
|
+
return deps;
|
|
1197
|
+
};
|
|
1191
1198
|
return {
|
|
1192
1199
|
*[Symbol.iterator] () {
|
|
1193
|
-
for (let dep of
|
|
1194
|
-
...getDeps(),
|
|
1195
|
-
...addDepsCaller.pendingData()
|
|
1196
|
-
]))yield dep;
|
|
1200
|
+
for (let dep of getAllDeps())yield dep;
|
|
1197
1201
|
},
|
|
1198
|
-
has:
|
|
1202
|
+
has: hasDep,
|
|
1199
1203
|
add: (dep)=>{
|
|
1200
|
-
addDepsCaller.push(dep);
|
|
1204
|
+
deletedDeps.delete(dep), addDepsCaller.push(dep);
|
|
1201
1205
|
},
|
|
1202
1206
|
addAll: (deps)=>{
|
|
1207
|
+
for (let dep of deps)deletedDeps.delete(dep);
|
|
1203
1208
|
addDepsCaller.push(...deps);
|
|
1209
|
+
},
|
|
1210
|
+
delete: (dep)=>{
|
|
1211
|
+
let hadDep = hasDep(dep);
|
|
1212
|
+
return hadDep && deletedDeps.add(dep), hadDep;
|
|
1213
|
+
},
|
|
1214
|
+
keys: ()=>getAllDeps().keys(),
|
|
1215
|
+
values: ()=>getAllDeps().values(),
|
|
1216
|
+
entries: ()=>getAllDeps().entries(),
|
|
1217
|
+
get size () {
|
|
1218
|
+
return getAllDeps().size;
|
|
1204
1219
|
}
|
|
1205
1220
|
};
|
|
1206
1221
|
}
|
|
@@ -1478,7 +1493,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
1478
1493
|
processAssetsHook.tap(getOptions(options), ()=>fn(...getArgs()));
|
|
1479
1494
|
},
|
|
1480
1495
|
tapAsync: (options, fn)=>{
|
|
1481
|
-
processAssetsHook.tapAsync(getOptions(options), (
|
|
1496
|
+
processAssetsHook.tapAsync(getOptions(options), (_assets, callback)=>fn(...getArgs(), callback));
|
|
1482
1497
|
},
|
|
1483
1498
|
tapPromise: (options, fn)=>{
|
|
1484
1499
|
processAssetsHook.tapPromise(getOptions(options), ()=>fn(...getArgs()));
|
|
@@ -2171,7 +2186,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
2171
2186
|
for (let entry of desc.import)new EntryPlugin(context, entry, options).apply(compiler);
|
|
2172
2187
|
}
|
|
2173
2188
|
}
|
|
2174
|
-
static entryDescriptionToOptions(
|
|
2189
|
+
static entryDescriptionToOptions(_compiler, name, desc) {
|
|
2175
2190
|
return {
|
|
2176
2191
|
name,
|
|
2177
2192
|
filename: desc.filename,
|
|
@@ -5766,7 +5781,10 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5766
5781
|
if ("function" != typeof options.entry) for (let key of Object.keys(options.entry))F(options.entry[key], "import", ()=>[
|
|
5767
5782
|
"./src"
|
|
5768
5783
|
]);
|
|
5769
|
-
F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), D(options, "lazyCompilation",
|
|
5784
|
+
F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), D(options, "lazyCompilation", {
|
|
5785
|
+
imports: !0,
|
|
5786
|
+
entries: !1
|
|
5787
|
+
}), D(options, "bail", !1), F(options, "cache", ()=>development), !1 === options.cache && (options.experiments.cache = !1), applyExperimentsDefaults(options.experiments, {
|
|
5770
5788
|
development
|
|
5771
5789
|
}), applyOptimizationDefaults(options.optimization, {
|
|
5772
5790
|
production,
|
|
@@ -5789,9 +5807,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5789
5807
|
targetProperties,
|
|
5790
5808
|
isAffectedByBrowserslist: void 0 === target || "string" == typeof target && target.startsWith("browserslist") || Array.isArray(target) && target.some((target)=>target.startsWith("browserslist")),
|
|
5791
5809
|
outputModule: options.experiments.outputModule,
|
|
5792
|
-
|
|
5793
|
-
entry: options.entry,
|
|
5794
|
-
futureDefaults: options.experiments.futureDefaults
|
|
5810
|
+
entry: options.entry
|
|
5795
5811
|
}), applybundlerInfoDefaults(options.experiments.rspackFuture, options.output.library), applyExternalsPresetsDefaults(options.externalsPresets, {
|
|
5796
5812
|
targetProperties,
|
|
5797
5813
|
buildHttp: !!options.experiments.buildHttp
|
|
@@ -5816,7 +5832,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5816
5832
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5817
5833
|
F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "topLevelAwait", !0), D(experiments, "deferImport", !1), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !0);
|
|
5818
5834
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5819
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.8-canary-
|
|
5835
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.8-canary-2fd81281-20251216180302"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
5820
5836
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
|
|
5821
5837
|
if (assertNotNill(module1.parser), assertNotNill(module1.generator), cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", !1), F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { usedExports, inlineConst, deferImport })=>{
|
|
5822
5838
|
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
@@ -5945,15 +5961,20 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5945
5961
|
type: "json"
|
|
5946
5962
|
},
|
|
5947
5963
|
type: "json"
|
|
5964
|
+
}, {
|
|
5965
|
+
with: {
|
|
5966
|
+
type: "text"
|
|
5967
|
+
},
|
|
5968
|
+
type: "asset/source"
|
|
5948
5969
|
}), rules;
|
|
5949
5970
|
});
|
|
5950
|
-
}, applyOutputDefaults = (output, { context, outputModule, targetProperties: tp, isAffectedByBrowserslist,
|
|
5971
|
+
}, applyOutputDefaults = (output, { context, outputModule, targetProperties: tp, isAffectedByBrowserslist, entry })=>{
|
|
5951
5972
|
let getLibraryName = (library)=>{
|
|
5952
5973
|
let libraryName = "object" == typeof library && library && !Array.isArray(library) && "type" in library ? library.name : library;
|
|
5953
5974
|
return Array.isArray(libraryName) ? libraryName.join(".") : "object" == typeof libraryName ? getLibraryName(libraryName.root) : "string" == typeof libraryName ? libraryName : "";
|
|
5954
5975
|
};
|
|
5955
5976
|
F(output, "uniqueName", ()=>{
|
|
5956
|
-
let libraryName = getLibraryName(output.library).replace(/^\[(\\*[\w:]+\\*)\](\.)|(\.)\[(\\*[\w:]+\\*)\](?=\.|$)|\[(\\*[\w:]+\\*)\]/g, (
|
|
5977
|
+
let libraryName = getLibraryName(output.library).replace(/^\[(\\*[\w:]+\\*)\](\.)|(\.)\[(\\*[\w:]+\\*)\](?=\.|$)|\[(\\*[\w:]+\\*)\]/g, (_, a, d1, d2, b, c)=>{
|
|
5957
5978
|
let content = a || b || c;
|
|
5958
5979
|
return content.startsWith("\\") && content.endsWith("\\") ? `${d2 || ""}[${content.slice(1, -1)}]${d1 || ""}` : "";
|
|
5959
5980
|
});
|
|
@@ -6916,7 +6937,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6916
6937
|
constructor(fs){
|
|
6917
6938
|
if (Object.assign(this, NOOP_FILESYSTEM), !fs) return;
|
|
6918
6939
|
this.writeFile = memoizeFn(()=>external_node_util_default().promisify(fs.writeFile.bind(fs))), this.removeFile = memoizeFn(()=>external_node_util_default().promisify(fs.unlink.bind(fs))), this.mkdir = memoizeFn(()=>external_node_util_default().promisify(fs.mkdir.bind(fs))), this.mkdirp = memoizeFn(()=>external_node_util_default().promisify(mkdirp.bind(null, fs))), this.removeDirAll = memoizeFn(()=>external_node_util_default().promisify((function rmrf(fs, p, callback) {
|
|
6919
|
-
fs.stat(p, (err, stats)=>{
|
|
6940
|
+
(fs.lstat || fs.stat)(p, (err, stats)=>{
|
|
6920
6941
|
if (err) return "ENOENT" === err.code ? callback() : callback(err);
|
|
6921
6942
|
stats.isDirectory() ? fs.readdir(p, (err, files)=>{
|
|
6922
6943
|
if (err) return callback(err);
|
|
@@ -6971,7 +6992,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6971
6992
|
readFn(fd, {
|
|
6972
6993
|
position,
|
|
6973
6994
|
length
|
|
6974
|
-
}, (err,
|
|
6995
|
+
}, (err, _bytesRead, buffer)=>{
|
|
6975
6996
|
err ? resolve(err) : resolve(buffer);
|
|
6976
6997
|
});
|
|
6977
6998
|
});
|
|
@@ -7266,10 +7287,10 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7266
7287
|
constructor(binding){
|
|
7267
7288
|
this.#binding = binding;
|
|
7268
7289
|
}
|
|
7269
|
-
resolveSync(
|
|
7290
|
+
resolveSync(_context, path, request) {
|
|
7270
7291
|
return this.#binding.resolveSync(path, request) ?? !1;
|
|
7271
7292
|
}
|
|
7272
|
-
resolve(
|
|
7293
|
+
resolve(_context, path, request, resolveContext, callback) {
|
|
7273
7294
|
this.#binding.resolve(path, request, (error, text)=>{
|
|
7274
7295
|
if (error) return void callback(error);
|
|
7275
7296
|
let req = text ? JSON.parse(text) : void 0;
|
|
@@ -7578,7 +7599,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7578
7599
|
});
|
|
7579
7600
|
}
|
|
7580
7601
|
}
|
|
7581
|
-
let CORE_VERSION = "1.6.8-canary-
|
|
7602
|
+
let CORE_VERSION = "1.6.8-canary-2fd81281-20251216180302", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7582
7603
|
|
|
7583
7604
|
Help:
|
|
7584
7605
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -8211,11 +8232,11 @@ Help:
|
|
|
8211
8232
|
parser: Object.fromEntries(Object.entries(parser = module1.parser).map(([k, v])=>[
|
|
8212
8233
|
k,
|
|
8213
8234
|
getRawParserOptions(v, k)
|
|
8214
|
-
]).filter(([
|
|
8235
|
+
]).filter(([_, v])=>void 0 !== v)),
|
|
8215
8236
|
generator: Object.fromEntries(Object.entries(generator = module1.generator).map(([k, v])=>[
|
|
8216
8237
|
k,
|
|
8217
8238
|
getRawGeneratorOptions(v, k)
|
|
8218
|
-
]).filter(([
|
|
8239
|
+
]).filter(([_, v])=>void 0 !== v)),
|
|
8219
8240
|
noParse: module1.noParse,
|
|
8220
8241
|
unsafeCache: module1.unsafeCache
|
|
8221
8242
|
};
|
|
@@ -8887,7 +8908,7 @@ Help:
|
|
|
8887
8908
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8888
8909
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8889
8910
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8890
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.8-canary-
|
|
8911
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.8-canary-2fd81281-20251216180302", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8891
8912
|
let mapError = (j, obj)=>({
|
|
8892
8913
|
...obj,
|
|
8893
8914
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -9797,7 +9818,7 @@ Help:
|
|
|
9797
9818
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9798
9819
|
},
|
|
9799
9820
|
version: (object)=>{
|
|
9800
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.8-canary-
|
|
9821
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.8-canary-2fd81281-20251216180302";
|
|
9801
9822
|
},
|
|
9802
9823
|
env: (object, _compilation, _context, { _env })=>{
|
|
9803
9824
|
object.env = _env;
|
|
@@ -9845,7 +9866,7 @@ Help:
|
|
|
9845
9866
|
}), options.assetsSpace ?? 1 / 0);
|
|
9846
9867
|
object.assets = limited.children, object.filteredAssets = limited.filteredChildren;
|
|
9847
9868
|
},
|
|
9848
|
-
chunks: (object, compilation, context,
|
|
9869
|
+
chunks: (object, compilation, context, _options, factory)=>{
|
|
9849
9870
|
let { type, getStatsCompilation } = context, chunks = getStatsCompilation(compilation).chunks;
|
|
9850
9871
|
object.chunks = factory.create(`${type}.chunks`, chunks, context);
|
|
9851
9872
|
},
|
|
@@ -10299,8 +10320,8 @@ Help:
|
|
|
10299
10320
|
warningsFilter: (value)=>(Array.isArray(value) ? value : value ? [
|
|
10300
10321
|
value
|
|
10301
10322
|
] : []).map((filter)=>{
|
|
10302
|
-
if ("string" == typeof filter) return (
|
|
10303
|
-
if (filter instanceof RegExp) return (
|
|
10323
|
+
if ("string" == typeof filter) return (_warning, warningString)=>warningString.includes(filter);
|
|
10324
|
+
if (filter instanceof RegExp) return (_warning, warningString)=>filter.test(warningString);
|
|
10304
10325
|
if ("function" == typeof filter) return filter;
|
|
10305
10326
|
throw Error(`Can only filter warnings with Strings or RegExps. (Given: ${filter})`);
|
|
10306
10327
|
}),
|
|
@@ -12016,7 +12037,7 @@ Help:
|
|
|
12016
12037
|
let _options = JSON.stringify(options || {});
|
|
12017
12038
|
return binding_default().transform(source, _options);
|
|
12018
12039
|
}
|
|
12019
|
-
let exports_rspackVersion = "1.6.8-canary-
|
|
12040
|
+
let exports_rspackVersion = "1.6.8-canary-2fd81281-20251216180302", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
12020
12041
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
12021
12042
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
12022
12043
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
|
@@ -12124,7 +12145,7 @@ Help:
|
|
|
12124
12145
|
}), sum;
|
|
12125
12146
|
}, {}), manifestExposes = function(exposes) {
|
|
12126
12147
|
if (!exposes) return;
|
|
12127
|
-
let result = parseOptions(exposes, (value
|
|
12148
|
+
let result = parseOptions(exposes, (value)=>({
|
|
12128
12149
|
import: Array.isArray(value) ? value : [
|
|
12129
12150
|
value
|
|
12130
12151
|
],
|
|
@@ -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;
|
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/core",
|
|
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": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@module-federation/runtime-tools": "0.21.6",
|
|
60
60
|
"@rspack/lite-tapable": "1.1.0",
|
|
61
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.6.8-canary-
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.6.8-canary-2fd81281-20251216180302"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|