@rspack-canary/core 1.7.0-canary-ecf3f75d-20251223084957 → 1.7.0-canary-4941195f-20251224083309
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/builtin-plugin/rsc/index.d.ts +3 -3
- package/dist/index.js +22 -22
- package/package.json +2 -2
|
@@ -7,13 +7,13 @@ export declare const RSC_LAYERS_NAMES: {
|
|
|
7
7
|
/**
|
|
8
8
|
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
REACT_SERVER_COMPONENTS: string;
|
|
11
11
|
/**
|
|
12
12
|
* Server Side Rendering layer for app.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
SERVER_SIDE_RENDERING: string;
|
|
15
15
|
/**
|
|
16
16
|
* The browser client bundle layer for actions.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
ACTION_BROWSER: string;
|
|
19
19
|
};
|
package/dist/index.js
CHANGED
|
@@ -5896,7 +5896,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5896
5896
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5897
5897
|
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, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !0), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !0);
|
|
5898
5898
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5899
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.7.0-canary-
|
|
5899
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.7.0-canary-4941195f-20251224083309"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
5900
5900
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, deferImport })=>{
|
|
5901
5901
|
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, { deferImport })=>{
|
|
5902
5902
|
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", [
|
|
@@ -7662,7 +7662,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7662
7662
|
});
|
|
7663
7663
|
}
|
|
7664
7664
|
}
|
|
7665
|
-
let CORE_VERSION = "1.7.0-canary-
|
|
7665
|
+
let CORE_VERSION = "1.7.0-canary-4941195f-20251224083309", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7666
7666
|
|
|
7667
7667
|
Help:
|
|
7668
7668
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -7890,21 +7890,21 @@ Help:
|
|
|
7890
7890
|
let startTime = this.startTime;
|
|
7891
7891
|
this.startTime = void 0, compilation.startTime = startTime, compilation.endTime = Date.now();
|
|
7892
7892
|
let cbs = this.callbacks;
|
|
7893
|
-
this.callbacks = []
|
|
7894
|
-
let fileDependencies = new Set([
|
|
7895
|
-
...compilation.fileDependencies
|
|
7896
|
-
]);
|
|
7897
|
-
fileDependencies.added = new Set(compilation.__internal__addedFileDependencies), fileDependencies.removed = new Set(compilation.__internal__removedFileDependencies);
|
|
7898
|
-
let contextDependencies = new Set([
|
|
7899
|
-
...compilation.contextDependencies
|
|
7900
|
-
]);
|
|
7901
|
-
contextDependencies.added = new Set(compilation.__internal__addedContextDependencies), contextDependencies.removed = new Set(compilation.__internal__removedContextDependencies);
|
|
7902
|
-
let missingDependencies = new Set([
|
|
7903
|
-
...compilation.missingDependencies
|
|
7904
|
-
]);
|
|
7905
|
-
missingDependencies.added = new Set(compilation.__internal__addedMissingDependencies), missingDependencies.removed = new Set(compilation.__internal__removedMissingDependencies), this.compiler.hooks.done.callAsync(stats, (err)=>{
|
|
7893
|
+
this.callbacks = [], this.compiler.hooks.done.callAsync(stats, (err)=>{
|
|
7906
7894
|
if (err) return handleError(err, cbs);
|
|
7907
|
-
|
|
7895
|
+
this.handler(null, stats);
|
|
7896
|
+
let fileDependencies = new Set([
|
|
7897
|
+
...compilation.fileDependencies
|
|
7898
|
+
]);
|
|
7899
|
+
fileDependencies.added = new Set(compilation.__internal__addedFileDependencies), fileDependencies.removed = new Set(compilation.__internal__removedFileDependencies);
|
|
7900
|
+
let contextDependencies = new Set([
|
|
7901
|
+
...compilation.contextDependencies
|
|
7902
|
+
]);
|
|
7903
|
+
contextDependencies.added = new Set(compilation.__internal__addedContextDependencies), contextDependencies.removed = new Set(compilation.__internal__removedContextDependencies);
|
|
7904
|
+
let missingDependencies = new Set([
|
|
7905
|
+
...compilation.missingDependencies
|
|
7906
|
+
]);
|
|
7907
|
+
for (let cb of (missingDependencies.added = new Set(compilation.__internal__addedMissingDependencies), missingDependencies.removed = new Set(compilation.__internal__removedMissingDependencies), process.nextTick(()=>{
|
|
7908
7908
|
this.#closed || this.watch(fileDependencies, contextDependencies, missingDependencies);
|
|
7909
7909
|
}), cbs))cb(null);
|
|
7910
7910
|
this.compiler.hooks.afterDone.call(stats);
|
|
@@ -8976,7 +8976,7 @@ Help:
|
|
|
8976
8976
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8977
8977
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8978
8978
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8979
|
-
}), childOptions.version && (obj.rspackVersion = "1.7.0-canary-
|
|
8979
|
+
}), childOptions.version && (obj.rspackVersion = "1.7.0-canary-4941195f-20251224083309", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8980
8980
|
let mapError = (j, obj)=>({
|
|
8981
8981
|
...obj,
|
|
8982
8982
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -9886,7 +9886,7 @@ Help:
|
|
|
9886
9886
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9887
9887
|
},
|
|
9888
9888
|
version: (object)=>{
|
|
9889
|
-
object.version = "5.75.0", object.rspackVersion = "1.7.0-canary-
|
|
9889
|
+
object.version = "5.75.0", object.rspackVersion = "1.7.0-canary-4941195f-20251224083309";
|
|
9890
9890
|
},
|
|
9891
9891
|
env: (object, _compilation, _context, { _env })=>{
|
|
9892
9892
|
object.env = _env;
|
|
@@ -12105,7 +12105,7 @@ Help:
|
|
|
12105
12105
|
let _options = JSON.stringify(options || {});
|
|
12106
12106
|
return binding_default().transform(source, _options);
|
|
12107
12107
|
}
|
|
12108
|
-
let exports_rspackVersion = "1.7.0-canary-
|
|
12108
|
+
let exports_rspackVersion = "1.7.0-canary-4941195f-20251224083309", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
12109
12109
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
12110
12110
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
12111
12111
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
|
@@ -12355,9 +12355,9 @@ Help:
|
|
|
12355
12355
|
};
|
|
12356
12356
|
},
|
|
12357
12357
|
RSC_LAYERS_NAMES: {
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12358
|
+
REACT_SERVER_COMPONENTS: "react-server-components",
|
|
12359
|
+
SERVER_SIDE_RENDERING: "server-side-rendering",
|
|
12360
|
+
ACTION_BROWSER: "action-browser"
|
|
12361
12361
|
}
|
|
12362
12362
|
}, ERROR_PREFIX = "Invalid Rspack configuration:";
|
|
12363
12363
|
function validateRspackConfig(config) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.7.0-canary-
|
|
3
|
+
"version": "1.7.0-canary-4941195f-20251224083309",
|
|
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.7.0-canary-
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.7.0-canary-4941195f-20251224083309"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|