@rspack-canary/core 1.6.0-canary-beafb11e-20251019174144 → 1.6.0-canary-e3199f44-20251020173943
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/Compiler.d.ts +8 -0
- package/dist/MultiCompiler.d.ts +1 -0
- package/dist/RuntimeGlobals.d.ts +3 -0
- package/dist/config/normalization.d.ts +2 -0
- package/dist/config/types.d.ts +12 -2
- package/dist/index.js +30 -20
- package/package.json +2 -2
package/dist/Compiler.d.ts
CHANGED
|
@@ -107,6 +107,14 @@ declare class Compiler {
|
|
|
107
107
|
cache: Cache;
|
|
108
108
|
compilerPath: string;
|
|
109
109
|
options: RspackOptionsNormalized;
|
|
110
|
+
/**
|
|
111
|
+
* Whether to skip dropping Rust compiler instance to improve performance.
|
|
112
|
+
* This is an internal option api and could be removed or changed at any time.
|
|
113
|
+
* @internal
|
|
114
|
+
* true: Skip dropping Rust compiler instance.
|
|
115
|
+
* false: Drop Rust compiler instance when Compiler is garbage collected.
|
|
116
|
+
*/
|
|
117
|
+
unsafeFastDrop: boolean;
|
|
110
118
|
/**
|
|
111
119
|
* Note: This is not a webpack public API, maybe removed in future.
|
|
112
120
|
* @internal
|
package/dist/MultiCompiler.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare class MultiCompiler {
|
|
|
41
41
|
running: boolean;
|
|
42
42
|
watching?: MultiWatching;
|
|
43
43
|
constructor(compilers: Compiler[] | Record<string, Compiler>, options?: MultiCompilerOptions);
|
|
44
|
+
set unsafeFastDrop(value: boolean);
|
|
44
45
|
get options(): import(".").RspackOptionsNormalized[] & MultiCompilerOptions;
|
|
45
46
|
get outputPath(): string;
|
|
46
47
|
get inputFileSystem(): InputFileSystem;
|
package/dist/RuntimeGlobals.d.ts
CHANGED
|
@@ -321,5 +321,8 @@ export declare const RuntimeGlobals: {
|
|
|
321
321
|
* ) =\> void
|
|
322
322
|
*/
|
|
323
323
|
readonly asyncModule: "__webpack_require__.a";
|
|
324
|
+
readonly asyncModuleExportSymbol: "__webpack_require__.aE";
|
|
325
|
+
readonly makeDeferredNamespaceObject: "__webpack_require__.z";
|
|
326
|
+
readonly makeDeferredNamespaceObjectSymbol: "__webpack_require__.zS";
|
|
324
327
|
};
|
|
325
328
|
export declare const isReservedRuntimeGlobal: (r: string) => boolean;
|
|
@@ -76,6 +76,7 @@ export interface ModuleOptionsNormalized {
|
|
|
76
76
|
parser: ParserOptionsByModuleType;
|
|
77
77
|
generator: GeneratorOptionsByModuleType;
|
|
78
78
|
noParse?: NoParseOption;
|
|
79
|
+
unsafeCache?: boolean | RegExp;
|
|
79
80
|
}
|
|
80
81
|
export type ExperimentCacheNormalized = boolean | {
|
|
81
82
|
type: "memory";
|
|
@@ -121,6 +122,7 @@ export interface ExperimentsNormalized {
|
|
|
121
122
|
typeReexportsPresence?: boolean;
|
|
122
123
|
lazyBarrel?: boolean;
|
|
123
124
|
nativeWatcher?: boolean;
|
|
125
|
+
deferImport?: boolean;
|
|
124
126
|
}
|
|
125
127
|
export type IgnoreWarningsNormalized = ((warning: WebpackError, compilation: Compilation) => boolean)[];
|
|
126
128
|
export type OptimizationRuntimeChunkNormalized = false | {
|
package/dist/config/types.d.ts
CHANGED
|
@@ -818,6 +818,8 @@ export type JavascriptParserOptions = {
|
|
|
818
818
|
typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
|
|
819
819
|
/** Whether to enable JSX parsing */
|
|
820
820
|
jsx?: boolean;
|
|
821
|
+
/** Whether to enable defer import */
|
|
822
|
+
deferImport?: boolean;
|
|
821
823
|
};
|
|
822
824
|
export type JsonParserOptions = {
|
|
823
825
|
/**
|
|
@@ -990,6 +992,10 @@ export type ModuleOptions = {
|
|
|
990
992
|
generator?: GeneratorOptionsByModuleType;
|
|
991
993
|
/** Keep module mechanism of the matched modules as-is, such as module.exports, require, import. */
|
|
992
994
|
noParse?: NoParseOption;
|
|
995
|
+
/**
|
|
996
|
+
* Cache the resolving of module requests.
|
|
997
|
+
*/
|
|
998
|
+
unsafeCache?: boolean | RegExp;
|
|
993
999
|
};
|
|
994
1000
|
type AllowTarget = "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "es2025" | "node" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | "nwjs" | `nwjs${number}` | `nwjs${number}.${number}` | "node-webkit" | `node-webkit${number}` | `node-webkit${number}.${number}` | "browserslist" | `browserslist:${string}`;
|
|
995
1001
|
/** Used to configure the target environment of Rspack output and the ECMAScript version of Rspack runtime code. */
|
|
@@ -2116,6 +2122,11 @@ export type Experiments = {
|
|
|
2116
2122
|
* @default false
|
|
2117
2123
|
*/
|
|
2118
2124
|
lazyBarrel?: boolean;
|
|
2125
|
+
/**
|
|
2126
|
+
* Enable defer import feature
|
|
2127
|
+
* @default false
|
|
2128
|
+
*/
|
|
2129
|
+
deferImport?: boolean;
|
|
2119
2130
|
};
|
|
2120
2131
|
export type Watch = boolean;
|
|
2121
2132
|
/** Options for watch mode. */
|
|
@@ -2148,8 +2159,7 @@ export type WatchOptions = {
|
|
|
2148
2159
|
/**
|
|
2149
2160
|
* Options for devServer, it based on `webpack-dev-server@5`
|
|
2150
2161
|
* */
|
|
2151
|
-
export
|
|
2152
|
-
}
|
|
2162
|
+
export type DevServer = DevServerOptions;
|
|
2153
2163
|
export type { Middleware as DevServerMiddleware } from "./devServer";
|
|
2154
2164
|
/**
|
|
2155
2165
|
* Ignore specific warnings.
|
package/dist/index.js
CHANGED
|
@@ -3938,7 +3938,8 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
3938
3938
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
3939
3939
|
inlineConst: parser.inlineConst,
|
|
3940
3940
|
typeReexportsPresence: parser.typeReexportsPresence,
|
|
3941
|
-
jsx: parser.jsx
|
|
3941
|
+
jsx: parser.jsx,
|
|
3942
|
+
deferImport: parser.deferImport
|
|
3942
3943
|
};
|
|
3943
3944
|
}
|
|
3944
3945
|
function getRawCssParserOptions(parser) {
|
|
@@ -5650,13 +5651,15 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5650
5651
|
}), applySnapshotDefaults(options.snapshot, {
|
|
5651
5652
|
production
|
|
5652
5653
|
}), applyModuleDefaults(options.module, {
|
|
5654
|
+
cache: !!options.cache,
|
|
5653
5655
|
asyncWebAssembly: options.experiments.asyncWebAssembly,
|
|
5654
5656
|
css: options.experiments.css,
|
|
5655
5657
|
targetProperties,
|
|
5656
5658
|
mode: options.mode,
|
|
5657
5659
|
uniqueName: options.output.uniqueName,
|
|
5658
5660
|
usedExports: !!options.optimization.usedExports,
|
|
5659
|
-
inlineConst: options.experiments.inlineConst
|
|
5661
|
+
inlineConst: options.experiments.inlineConst,
|
|
5662
|
+
deferImport: options.experiments.deferImport
|
|
5660
5663
|
}), applyOutputDefaults(options.output, {
|
|
5661
5664
|
context: options.context,
|
|
5662
5665
|
targetProperties,
|
|
@@ -5687,17 +5690,18 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5687
5690
|
let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
|
|
5688
5691
|
D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
|
|
5689
5692
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5690
|
-
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, "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);
|
|
5693
|
+
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);
|
|
5691
5694
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5692
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-
|
|
5693
|
-
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
5694
|
-
if (assertNotNill(module1.parser), assertNotNill(module1.generator), 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 })=>{
|
|
5695
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-e3199f44-20251020173943"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
5696
|
+
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
|
|
5697
|
+
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 })=>{
|
|
5695
5698
|
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", [
|
|
5696
5699
|
"..."
|
|
5697
|
-
]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant"), D(parserOptions, "jsx", !1);
|
|
5700
|
+
]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant"), D(parserOptions, "jsx", !1), D(parserOptions, "deferImport", deferImport);
|
|
5698
5701
|
})(module1.parser.javascript, {
|
|
5699
5702
|
usedExports,
|
|
5700
|
-
inlineConst
|
|
5703
|
+
inlineConst,
|
|
5704
|
+
deferImport
|
|
5701
5705
|
}), F(module1.parser, "json", ()=>({})), assertNotNill(module1.parser.json), D(module1.parser.json, "exportsDepth", "development" === mode ? 1 : Number.MAX_SAFE_INTEGER), F(module1.generator, "json", ()=>({})), assertNotNill(module1.generator.json), D(module1.generator.json, "JSONParse", !0), css) {
|
|
5702
5706
|
F(module1.parser, "css", ()=>({})), assertNotNill(module1.parser.css), D(module1.parser.css, "namedExports", !0), D(module1.parser.css, "url", !0), F(module1.parser, "css/auto", ()=>({})), assertNotNill(module1.parser["css/auto"]), D(module1.parser["css/auto"], "namedExports", !0), D(module1.parser["css/auto"], "url", !0), F(module1.parser, "css/module", ()=>({})), assertNotNill(module1.parser["css/module"]), D(module1.parser["css/module"], "namedExports", !0), D(module1.parser["css/module"], "url", !0), F(module1.generator, "css", ()=>({})), assertNotNill(module1.generator.css), D(module1.generator.css, "exportsOnly", !targetProperties || !targetProperties.document), D(module1.generator.css, "esModule", !0), F(module1.generator, "css/auto", ()=>({})), assertNotNill(module1.generator["css/auto"]), D(module1.generator["css/auto"], "exportsOnly", !targetProperties || !targetProperties.document), D(module1.generator["css/auto"], "exportsConvention", "as-is");
|
|
5703
5707
|
let localIdentName = uniqueName && uniqueName.length > 0 ? "[uniqueName]-[id]-[local]" : "[id]-[local]";
|
|
@@ -6256,7 +6260,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6256
6260
|
]),
|
|
6257
6261
|
rules: nestedArray(module1.rules, (r)=>[
|
|
6258
6262
|
...r
|
|
6259
|
-
])
|
|
6263
|
+
]),
|
|
6264
|
+
unsafeCache: module1.unsafeCache
|
|
6260
6265
|
})),
|
|
6261
6266
|
target: config.target,
|
|
6262
6267
|
externals: config.externals,
|
|
@@ -7074,7 +7079,10 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7074
7079
|
systemContext: "__webpack_require__.y",
|
|
7075
7080
|
baseURI: "__webpack_require__.b",
|
|
7076
7081
|
relativeUrl: "__webpack_require__.U",
|
|
7077
|
-
asyncModule: "__webpack_require__.a"
|
|
7082
|
+
asyncModule: "__webpack_require__.a",
|
|
7083
|
+
asyncModuleExportSymbol: "__webpack_require__.aE",
|
|
7084
|
+
makeDeferredNamespaceObject: "__webpack_require__.z",
|
|
7085
|
+
makeDeferredNamespaceObjectSymbol: "__webpack_require__.zS"
|
|
7078
7086
|
};
|
|
7079
7087
|
for (let entry of Object.entries(RuntimeGlobals))RESERVED_RUNTIME_GLOBALS.set(entry[1], entry[0]);
|
|
7080
7088
|
class CodeGenerationResult {
|
|
@@ -7330,7 +7338,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7330
7338
|
});
|
|
7331
7339
|
}
|
|
7332
7340
|
}
|
|
7333
|
-
let CORE_VERSION = "1.6.0-canary-
|
|
7341
|
+
let CORE_VERSION = "1.6.0-canary-e3199f44-20251020173943", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7334
7342
|
|
|
7335
7343
|
Help:
|
|
7336
7344
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -7630,6 +7638,7 @@ Help:
|
|
|
7630
7638
|
cache;
|
|
7631
7639
|
compilerPath;
|
|
7632
7640
|
options;
|
|
7641
|
+
unsafeFastDrop = !1;
|
|
7633
7642
|
__internal_browser_require;
|
|
7634
7643
|
constructor(context, options){
|
|
7635
7644
|
this.#initial = !0, this.#builtinPlugins = [], this.#nonSkippableRegisters = [], this.#moduleExecutionResultsMap = new Map(), this.#ruleSet = new RuleSetCompiler(), this.hooks = {
|
|
@@ -7867,10 +7876,7 @@ Help:
|
|
|
7867
7876
|
}) : this.hooks.shutdown.callAsync((err)=>{
|
|
7868
7877
|
if (err) return callback(err);
|
|
7869
7878
|
this.cache.shutdown(()=>{
|
|
7870
|
-
this.#
|
|
7871
|
-
if (error) return callback(error);
|
|
7872
|
-
instance.close(), callback();
|
|
7873
|
-
});
|
|
7879
|
+
this.#instance?.close(), callback();
|
|
7874
7880
|
});
|
|
7875
7881
|
});
|
|
7876
7882
|
}
|
|
@@ -7962,7 +7968,8 @@ Help:
|
|
|
7962
7968
|
k,
|
|
7963
7969
|
getRawGeneratorOptions(v, k)
|
|
7964
7970
|
]).filter(([k, v])=>void 0 !== v)),
|
|
7965
|
-
noParse: module1.noParse
|
|
7971
|
+
noParse: module1.noParse,
|
|
7972
|
+
unsafeCache: module1.unsafeCache
|
|
7966
7973
|
}),
|
|
7967
7974
|
optimization: options.optimization,
|
|
7968
7975
|
stats: {
|
|
@@ -7997,7 +8004,7 @@ Help:
|
|
|
7997
8004
|
this.#registers = this.#createHooksRegisters();
|
|
7998
8005
|
let inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options2.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
7999
8006
|
try {
|
|
8000
|
-
this.#instance = new instanceBinding.JsCompiler(this.compilerPath, rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory)), callback(null, this.#instance);
|
|
8007
|
+
this.#instance = new instanceBinding.JsCompiler(this.compilerPath, rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory), this.unsafeFastDrop), callback(null, this.#instance);
|
|
8001
8008
|
} catch (err) {
|
|
8002
8009
|
err instanceof Error && delete err.stack, callback(Error("Failed to create Rspack compiler instance, check the Rspack configuration.", {
|
|
8003
8010
|
cause: err
|
|
@@ -8614,7 +8621,7 @@ Help:
|
|
|
8614
8621
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8615
8622
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8616
8623
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8617
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.0-canary-
|
|
8624
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.0-canary-e3199f44-20251020173943", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8618
8625
|
let mapError = (j, obj)=>({
|
|
8619
8626
|
...obj,
|
|
8620
8627
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -8763,6 +8770,9 @@ Help:
|
|
|
8763
8770
|
});
|
|
8764
8771
|
}
|
|
8765
8772
|
}
|
|
8773
|
+
set unsafeFastDrop(value) {
|
|
8774
|
+
for (let compiler of this.compilers)compiler.unsafeFastDrop = value;
|
|
8775
|
+
}
|
|
8766
8776
|
get options() {
|
|
8767
8777
|
return Object.assign(this.compilers.map((c)=>c.options), this._options);
|
|
8768
8778
|
}
|
|
@@ -9508,7 +9518,7 @@ Help:
|
|
|
9508
9518
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9509
9519
|
},
|
|
9510
9520
|
version: (object)=>{
|
|
9511
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.0-canary-
|
|
9521
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.0-canary-e3199f44-20251020173943";
|
|
9512
9522
|
},
|
|
9513
9523
|
env: (object, _compilation, _context, { _env })=>{
|
|
9514
9524
|
object.env = _env;
|
|
@@ -11626,7 +11636,7 @@ Help:
|
|
|
11626
11636
|
let _options = JSON.stringify(options || {});
|
|
11627
11637
|
return binding_default().transform(source, _options);
|
|
11628
11638
|
}
|
|
11629
|
-
let exports_rspackVersion = "1.6.0-canary-
|
|
11639
|
+
let exports_rspackVersion = "1.6.0-canary-e3199f44-20251020173943", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
11630
11640
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
11631
11641
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
11632
11642
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.6.0-canary-
|
|
3
|
+
"version": "1.6.0-canary-e3199f44-20251020173943",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@module-federation/runtime-tools": "0.20.0",
|
|
59
59
|
"@rspack/lite-tapable": "1.0.1",
|
|
60
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.6.0-canary-
|
|
60
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.6.0-canary-e3199f44-20251020173943"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@swc/helpers": ">=0.5.1"
|