@rspack-canary/core 1.7.0-canary-0da65999-20251226173527 → 1.7.0-canary-4ecc0318-20251229184412
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/config/target.d.ts +1 -1
- package/dist/index.js +16 -8
- package/package.json +3 -3
package/dist/config/target.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ type Never<T> = {
|
|
|
75
75
|
[P in keyof T]?: never;
|
|
76
76
|
};
|
|
77
77
|
type Mix<A, B> = (A & Never<B>) | (Never<A> & B) | (A & B);
|
|
78
|
-
type TargetProperties = Mix<Mix<PlatformTargetProperties, ElectronContextTargetProperties>, Mix<ApiTargetProperties, EcmaTargetProperties>>;
|
|
78
|
+
export type TargetProperties = Mix<Mix<PlatformTargetProperties, ElectronContextTargetProperties>, Mix<ApiTargetProperties, EcmaTargetProperties>>;
|
|
79
79
|
/**
|
|
80
80
|
* @param target the target
|
|
81
81
|
* @param context the context directory
|
package/dist/index.js
CHANGED
|
@@ -5847,8 +5847,10 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5847
5847
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5848
5848
|
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);
|
|
5849
5849
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5850
|
-
'object' == typeof rspackFuture && (D(rspackFuture, 'bundlerInfo', {}), 'object' == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, 'version', "1.7.0-canary-
|
|
5851
|
-
}, applySnapshotDefaults = (_snapshot, _env)=>{},
|
|
5850
|
+
'object' == typeof rspackFuture && (D(rspackFuture, 'bundlerInfo', {}), 'object' == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, 'version', "1.7.0-canary-4ecc0318-20251229184412"), D(rspackFuture.bundlerInfo, 'bundler', 'rspack'), D(rspackFuture.bundlerInfo, 'force', !library)));
|
|
5851
|
+
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyCssGeneratorOptionsDefaults = (generatorOptions, { targetProperties })=>{
|
|
5852
|
+
D(generatorOptions, 'exportsOnly', !targetProperties || !1 === targetProperties.document), D(generatorOptions, 'esModule', !0);
|
|
5853
|
+
}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, deferImport })=>{
|
|
5852
5854
|
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 })=>{
|
|
5853
5855
|
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', [
|
|
5854
5856
|
'...'
|
|
@@ -5856,9 +5858,15 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5856
5858
|
})(module1.parser.javascript, {
|
|
5857
5859
|
deferImport
|
|
5858
5860
|
}), 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) {
|
|
5859
|
-
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),
|
|
5861
|
+
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), applyCssGeneratorOptionsDefaults(module1.generator.css, {
|
|
5862
|
+
targetProperties
|
|
5863
|
+
}), F(module1.generator, 'css/auto', ()=>({})), assertNotNill(module1.generator['css/auto']), applyCssGeneratorOptionsDefaults(module1.generator['css/auto'], {
|
|
5864
|
+
targetProperties
|
|
5865
|
+
}), D(module1.generator['css/auto'], 'exportsConvention', 'as-is');
|
|
5860
5866
|
let localIdentName = 'development' === mode ? uniqueName && uniqueName.length > 0 ? '[uniqueName]-[id]-[local]' : '[id]-[local]' : '[fullhash]';
|
|
5861
|
-
D(module1.generator['css/auto'], 'localIdentName', localIdentName),
|
|
5867
|
+
D(module1.generator['css/auto'], 'localIdentName', localIdentName), F(module1.generator, 'css/module', ()=>({})), assertNotNill(module1.generator['css/module']), applyCssGeneratorOptionsDefaults(module1.generator['css/module'], {
|
|
5868
|
+
targetProperties
|
|
5869
|
+
}), D(module1.generator['css/module'], 'exportsConvention', 'as-is'), D(module1.generator['css/module'], 'localIdentName', localIdentName);
|
|
5862
5870
|
}
|
|
5863
5871
|
A(module1, 'defaultRules', ()=>{
|
|
5864
5872
|
let esm = {
|
|
@@ -7618,7 +7626,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7618
7626
|
});
|
|
7619
7627
|
}
|
|
7620
7628
|
}
|
|
7621
|
-
let CORE_VERSION = "1.7.0-canary-
|
|
7629
|
+
let CORE_VERSION = "1.7.0-canary-4ecc0318-20251229184412", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7622
7630
|
|
|
7623
7631
|
Help:
|
|
7624
7632
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -8941,7 +8949,7 @@ Help:
|
|
|
8941
8949
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8942
8950
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8943
8951
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8944
|
-
}), childOptions.version && (obj.rspackVersion = "1.7.0-canary-
|
|
8952
|
+
}), childOptions.version && (obj.rspackVersion = "1.7.0-canary-4ecc0318-20251229184412", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
|
|
8945
8953
|
let mapError = (j, obj)=>({
|
|
8946
8954
|
...obj,
|
|
8947
8955
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -9851,7 +9859,7 @@ Help:
|
|
|
9851
9859
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9852
9860
|
},
|
|
9853
9861
|
version: (object)=>{
|
|
9854
|
-
object.version = "5.75.0", object.rspackVersion = "1.7.0-canary-
|
|
9862
|
+
object.version = "5.75.0", object.rspackVersion = "1.7.0-canary-4ecc0318-20251229184412";
|
|
9855
9863
|
},
|
|
9856
9864
|
env: (object, _compilation, _context, { _env })=>{
|
|
9857
9865
|
object.env = _env;
|
|
@@ -12070,7 +12078,7 @@ Help:
|
|
|
12070
12078
|
let _options = JSON.stringify(options || {});
|
|
12071
12079
|
return binding_default().transform(source, _options);
|
|
12072
12080
|
}
|
|
12073
|
-
let exports_rspackVersion = "1.7.0-canary-
|
|
12081
|
+
let exports_rspackVersion = "1.7.0-canary-4ecc0318-20251229184412", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
12074
12082
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
12075
12083
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
12076
12084
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
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-4ecc0318-20251229184412",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@ast-grep/napi": "^0.40.3",
|
|
41
41
|
"@napi-rs/wasm-runtime": "1.0.7",
|
|
42
42
|
"@rsbuild/plugin-node-polyfill": "^1.4.2",
|
|
43
|
-
"@rslib/core": "0.
|
|
43
|
+
"@rslib/core": "0.19.0",
|
|
44
44
|
"@swc/types": "0.1.25",
|
|
45
45
|
"@types/node": "^20.19.27",
|
|
46
46
|
"@types/watchpack": "^2.4.5",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@module-federation/runtime-tools": "0.22.0",
|
|
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-4ecc0318-20251229184412"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|