@rspack-canary/core 1.6.0-canary-c1ffd5c5-20251016085846 → 1.6.0-canary-2ccce257-20251016173648
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/index.js
CHANGED
|
@@ -8850,7 +8850,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8850
8850
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
8851
8851
|
defaults_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);
|
|
8852
8852
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8853
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-
|
|
8853
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-2ccce257-20251016173648"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8854
8854
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8855
8855
|
if (assertNotNill(module1.parser), assertNotNill(module1.generator), defaults_F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), defaults_F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), defaults_F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { usedExports, inlineConst })=>{
|
|
8856
8856
|
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", [
|
|
@@ -10491,7 +10491,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10491
10491
|
});
|
|
10492
10492
|
}
|
|
10493
10493
|
}
|
|
10494
|
-
let CORE_VERSION = "1.6.0-canary-
|
|
10494
|
+
let CORE_VERSION = "1.6.0-canary-2ccce257-20251016173648", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10495
10495
|
|
|
10496
10496
|
Help:
|
|
10497
10497
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -11769,7 +11769,7 @@ Help:
|
|
|
11769
11769
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11770
11770
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11771
11771
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11772
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.0-canary-
|
|
11772
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.0-canary-2ccce257-20251016173648", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11773
11773
|
let mapError = (j, obj)=>({
|
|
11774
11774
|
...obj,
|
|
11775
11775
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12071,8 +12071,6 @@ Help:
|
|
|
12071
12071
|
}, callback);
|
|
12072
12072
|
}
|
|
12073
12073
|
}
|
|
12074
|
-
let graceful_fs_index_js_namespaceObject = require("../compiled/graceful-fs/index.js");
|
|
12075
|
-
var graceful_fs_index_js_default = __webpack_require__.n(graceful_fs_index_js_namespaceObject);
|
|
12076
12074
|
class MemoryCachePlugin {
|
|
12077
12075
|
static PLUGIN_NAME = "MemoryCachePlugin";
|
|
12078
12076
|
apply(compiler) {
|
|
@@ -12665,7 +12663,7 @@ Help:
|
|
|
12665
12663
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12666
12664
|
},
|
|
12667
12665
|
version: (object)=>{
|
|
12668
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.0-canary-
|
|
12666
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.0-canary-2ccce257-20251016173648";
|
|
12669
12667
|
},
|
|
12670
12668
|
env: (object, _compilation, _context, { _env })=>{
|
|
12671
12669
|
object.env = _env;
|
|
@@ -13985,7 +13983,7 @@ Help:
|
|
|
13985
13983
|
}
|
|
13986
13984
|
class RspackOptionsApply {
|
|
13987
13985
|
process(options, compiler) {
|
|
13988
|
-
if (external_node_assert_default()(options.output.path, "options.output.path should have value after `applyRspackOptionsDefaults`"), compiler.outputPath = options.output.path, compiler.name = options.name, compiler.outputFileSystem =
|
|
13986
|
+
if (external_node_assert_default()(options.output.path, "options.output.path should have value after `applyRspackOptionsDefaults`"), compiler.outputPath = options.output.path, compiler.name = options.name, compiler.outputFileSystem = external_node_fs_default(), options.externals && (external_node_assert_default()(options.externalsType, "options.externalsType should have value after `applyRspackOptionsDefaults`"), new ExternalsPlugin(options.externalsType, options.externals, !1).apply(compiler)), options.externalsPresets.node && new NodeTargetPlugin().apply(compiler), options.externalsPresets.electronMain && new ElectronTargetPlugin("main").apply(compiler), options.externalsPresets.electronPreload && new ElectronTargetPlugin("preload").apply(compiler), options.externalsPresets.electronRenderer && new ElectronTargetPlugin("renderer").apply(compiler), !options.externalsPresets.electron || options.externalsPresets.electronMain || options.externalsPresets.electronPreload || options.externalsPresets.electronRenderer || new ElectronTargetPlugin().apply(compiler), options.externalsPresets.nwjs && new ExternalsPlugin("node-commonjs", "nw.gui", !1).apply(compiler), (options.externalsPresets.web || options.externalsPresets.webAsync || options.externalsPresets.node && options.experiments.css) && new HttpExternalsRspackPlugin(!!options.experiments.css, !!options.externalsPresets.webAsync).apply(compiler), new ChunkPrefetchPreloadPlugin().apply(compiler), options.output.pathinfo && new ModuleInfoHeaderPlugin("verbose" === options.output.pathinfo).apply(compiler), "string" == typeof options.output.chunkFormat) switch(options.output.chunkFormat){
|
|
13989
13987
|
case "array-push":
|
|
13990
13988
|
new ArrayPushCallbackChunkFormatPlugin().apply(compiler);
|
|
13991
13989
|
break;
|
|
@@ -14514,8 +14512,8 @@ Help:
|
|
|
14514
14512
|
stream: infrastructureLogging.stream
|
|
14515
14513
|
})
|
|
14516
14514
|
});
|
|
14517
|
-
let inputFileSystem = new (CachedInputFileSystem_default())(
|
|
14518
|
-
compiler.inputFileSystem = inputFileSystem, compiler.outputFileSystem =
|
|
14515
|
+
let inputFileSystem = new (CachedInputFileSystem_default())(external_node_fs_default(), 60000);
|
|
14516
|
+
compiler.inputFileSystem = inputFileSystem, compiler.outputFileSystem = external_node_fs_default(), compiler.intermediateFileSystem = null, compiler.options.experiments.nativeWatcher ? compiler.watchFileSystem = new NativeWatchFileSystem(inputFileSystem) : compiler.watchFileSystem = new NodeWatchFileSystem(inputFileSystem), compiler.hooks.beforeRun.tap("NodeEnvironmentPlugin", (compiler)=>{
|
|
14519
14517
|
compiler.inputFileSystem === inputFileSystem && (compiler.fsStartTime = Date.now(), inputFileSystem.purge?.());
|
|
14520
14518
|
});
|
|
14521
14519
|
}
|
|
@@ -15995,7 +15993,7 @@ Help:
|
|
|
15995
15993
|
let _options = JSON.stringify(options || {});
|
|
15996
15994
|
return binding_default().transform(source, _options);
|
|
15997
15995
|
}
|
|
15998
|
-
let exports_rspackVersion = "1.6.0-canary-
|
|
15996
|
+
let exports_rspackVersion = "1.6.0-canary-2ccce257-20251016173648", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15999
15997
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
16000
15998
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
16001
15999
|
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-2ccce257-20251016173648",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -41,12 +41,10 @@
|
|
|
41
41
|
"@rsbuild/plugin-node-polyfill": "^1.4.2",
|
|
42
42
|
"@rslib/core": "0.15.1",
|
|
43
43
|
"@swc/types": "0.1.25",
|
|
44
|
-
"@types/graceful-fs": "4.1.9",
|
|
45
44
|
"@types/watchpack": "^2.4.4",
|
|
46
45
|
"browserslist-load-config": "^1.0.1",
|
|
47
46
|
"enhanced-resolve": "5.18.3",
|
|
48
47
|
"glob-to-regexp": "^0.4.1",
|
|
49
|
-
"graceful-fs": "^4.2.11",
|
|
50
48
|
"memfs": "4.48.1",
|
|
51
49
|
"prebundle": "^1.4.2",
|
|
52
50
|
"tinypool": "^1.1.1",
|
|
@@ -60,7 +58,7 @@
|
|
|
60
58
|
"dependencies": {
|
|
61
59
|
"@module-federation/runtime-tools": "0.20.0",
|
|
62
60
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.6.0-canary-
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.6.0-canary-2ccce257-20251016173648"
|
|
64
62
|
},
|
|
65
63
|
"peerDependencies": {
|
|
66
64
|
"@swc/helpers": ">=0.5.1"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
export * from 'fs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Use this method to patch the global fs module (or any other fs-like module).
|
|
6
|
-
* NOTE: This should only ever be done at the top-level application layer, in order to delay on
|
|
7
|
-
* EMFILE errors from any fs-using dependencies. You should **not** do this in a library, because
|
|
8
|
-
* it can cause unexpected delays in other parts of the program.
|
|
9
|
-
* @param fsModule The reference to the fs module or an fs-like module.
|
|
10
|
-
*/
|
|
11
|
-
declare function gracefulify<T>(fsModule: T): T;
|
|
12
|
-
|
|
13
|
-
export { gracefulify };
|