@rspack-canary/browser 1.4.12-canary-40c41ca5-20250806090917 → 1.4.12-canary-becf0a0e-20250808091433
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 +2 -2
- package/dist/exports.d.ts +1 -1
- package/dist/index.mjs +14 -10
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/package.json +2 -2
package/dist/Compilation.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface Asset {
|
|
|
44
44
|
source: Source;
|
|
45
45
|
info: AssetInfo;
|
|
46
46
|
}
|
|
47
|
-
export type
|
|
47
|
+
export type ChunkPathData = {
|
|
48
48
|
id?: string;
|
|
49
49
|
name?: string;
|
|
50
50
|
hash?: string;
|
|
@@ -57,7 +57,7 @@ export type PathData = {
|
|
|
57
57
|
runtime?: string;
|
|
58
58
|
url?: string;
|
|
59
59
|
id?: string;
|
|
60
|
-
chunk?: Chunk |
|
|
60
|
+
chunk?: Chunk | ChunkPathData;
|
|
61
61
|
contentHashType?: string;
|
|
62
62
|
};
|
|
63
63
|
export interface LogEntry {
|
package/dist/exports.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const rspackVersion: string;
|
|
2
2
|
declare const version: string;
|
|
3
3
|
export { rspackVersion, version };
|
|
4
|
-
export type { Asset, AssetInfo, Assets, CompilationParams, LogEntry } from "./Compilation";
|
|
4
|
+
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData } from "./Compilation";
|
|
5
5
|
export { Compilation } from "./Compilation";
|
|
6
6
|
export { Compiler } from "./Compiler";
|
|
7
7
|
export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
|
package/dist/index.mjs
CHANGED
|
@@ -39735,7 +39735,7 @@ async function runLoaders(compiler, context) {
|
|
|
39735
39735
|
resource: loaderContext.resource,
|
|
39736
39736
|
mode: loaderContext.mode,
|
|
39737
39737
|
sourceMap: loaderContext.sourceMap,
|
|
39738
|
-
rootContext: loaderContext.
|
|
39738
|
+
rootContext: loaderContext.rootContext,
|
|
39739
39739
|
loaderIndex: loaderContext.loaderIndex,
|
|
39740
39740
|
loaders: loaderContext.loaders.map((item)=>{
|
|
39741
39741
|
let options = item.options;
|
|
@@ -46985,7 +46985,8 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
46985
46985
|
css: options.experiments.css,
|
|
46986
46986
|
targetProperties,
|
|
46987
46987
|
mode: options.mode,
|
|
46988
|
-
uniqueName: options.output.uniqueName
|
|
46988
|
+
uniqueName: options.output.uniqueName,
|
|
46989
|
+
inlineConst: options.experiments.inlineConst
|
|
46989
46990
|
});
|
|
46990
46991
|
applyOutputDefaults(options.output, {
|
|
46991
46992
|
context: options.context,
|
|
@@ -47047,6 +47048,7 @@ const applyExperimentsDefaults = (experiments, { production, development })=>{
|
|
|
47047
47048
|
D(experiments, "asyncWebAssembly", experiments.futureDefaults);
|
|
47048
47049
|
D(experiments, "css", experiments.futureDefaults ? true : void 0);
|
|
47049
47050
|
D(experiments, "layers", false);
|
|
47051
|
+
if (false === experiments.topLevelAwait) console.warn("`experiments.topLevelAwait` config has been deprecated and will be removed in Rspack v2.0. Top-level await will be always enabled. Please remove this option from your Rspack configuration.");
|
|
47050
47052
|
D(experiments, "topLevelAwait", true);
|
|
47051
47053
|
D(experiments, "buildHttp", void 0);
|
|
47052
47054
|
if (experiments.buildHttp && "object" == typeof experiments.buildHttp) D(experiments.buildHttp, "upgrade", false);
|
|
@@ -47082,14 +47084,14 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
47082
47084
|
if ("object" == typeof rspackFuture) {
|
|
47083
47085
|
D(rspackFuture, "bundlerInfo", {});
|
|
47084
47086
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
47085
|
-
D(rspackFuture.bundlerInfo, "version", "1.4.12-canary-
|
|
47087
|
+
D(rspackFuture.bundlerInfo, "version", "1.4.12-canary-becf0a0e-20250808091433");
|
|
47086
47088
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
47087
47089
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
47088
47090
|
}
|
|
47089
47091
|
}
|
|
47090
47092
|
};
|
|
47091
47093
|
const applySnapshotDefaults = (_snapshot, _env)=>{};
|
|
47092
|
-
const applyJavascriptParserOptionsDefaults = (parserOptions)=>{
|
|
47094
|
+
const applyJavascriptParserOptionsDefaults = (parserOptions, { inlineConst })=>{
|
|
47093
47095
|
D(parserOptions, "dynamicImportMode", "lazy");
|
|
47094
47096
|
D(parserOptions, "dynamicImportPrefetch", false);
|
|
47095
47097
|
D(parserOptions, "dynamicImportPreload", false);
|
|
@@ -47106,13 +47108,13 @@ const applyJavascriptParserOptionsDefaults = (parserOptions)=>{
|
|
|
47106
47108
|
"..."
|
|
47107
47109
|
]);
|
|
47108
47110
|
D(parserOptions, "importMeta", true);
|
|
47109
|
-
D(parserOptions, "inlineConst",
|
|
47111
|
+
D(parserOptions, "inlineConst", inlineConst);
|
|
47110
47112
|
D(parserOptions, "typeReexportsPresence", "no-tolerant");
|
|
47111
47113
|
};
|
|
47112
47114
|
const applyJsonGeneratorOptionsDefaults = (generatorOptions)=>{
|
|
47113
47115
|
D(generatorOptions, "JSONParse", true);
|
|
47114
47116
|
};
|
|
47115
|
-
const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName })=>{
|
|
47117
|
+
const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, inlineConst })=>{
|
|
47116
47118
|
assertNotNill(module.parser);
|
|
47117
47119
|
assertNotNill(module.generator);
|
|
47118
47120
|
defaults_F(module.parser, ASSET_MODULE_TYPE, ()=>({}));
|
|
@@ -47121,7 +47123,9 @@ const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties,
|
|
|
47121
47123
|
if ("object" == typeof module.parser.asset.dataUrlCondition) D(module.parser.asset.dataUrlCondition, "maxSize", 8096);
|
|
47122
47124
|
defaults_F(module.parser, "javascript", ()=>({}));
|
|
47123
47125
|
assertNotNill(module.parser.javascript);
|
|
47124
|
-
applyJavascriptParserOptionsDefaults(module.parser.javascript
|
|
47126
|
+
applyJavascriptParserOptionsDefaults(module.parser.javascript, {
|
|
47127
|
+
inlineConst
|
|
47128
|
+
});
|
|
47125
47129
|
defaults_F(module.parser, JSON_MODULE_TYPE, ()=>({}));
|
|
47126
47130
|
assertNotNill(module.parser[JSON_MODULE_TYPE]);
|
|
47127
47131
|
D(module.parser[JSON_MODULE_TYPE], "exportsDepth", "development" === mode ? 1 : Number.MAX_SAFE_INTEGER);
|
|
@@ -50973,7 +50977,7 @@ class MultiStats {
|
|
|
50973
50977
|
return obj;
|
|
50974
50978
|
});
|
|
50975
50979
|
if (childOptions.version) {
|
|
50976
|
-
obj.rspackVersion = "1.4.12-canary-
|
|
50980
|
+
obj.rspackVersion = "1.4.12-canary-becf0a0e-20250808091433";
|
|
50977
50981
|
obj.version = "5.75.0";
|
|
50978
50982
|
}
|
|
50979
50983
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -52283,7 +52287,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52283
52287
|
},
|
|
52284
52288
|
version: (object)=>{
|
|
52285
52289
|
object.version = "5.75.0";
|
|
52286
|
-
object.rspackVersion = "1.4.12-canary-
|
|
52290
|
+
object.rspackVersion = "1.4.12-canary-becf0a0e-20250808091433";
|
|
52287
52291
|
},
|
|
52288
52292
|
env: (object, _compilation, _context, { _env })=>{
|
|
52289
52293
|
object.env = _env;
|
|
@@ -56894,7 +56898,7 @@ function transformSync(source, options) {
|
|
|
56894
56898
|
const _options = JSON.stringify(options || {});
|
|
56895
56899
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56896
56900
|
}
|
|
56897
|
-
const exports_rspackVersion = "1.4.12-canary-
|
|
56901
|
+
const exports_rspackVersion = "1.4.12-canary-becf0a0e-20250808091433";
|
|
56898
56902
|
const exports_version = "5.75.0";
|
|
56899
56903
|
const exports_WebpackError = Error;
|
|
56900
56904
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.4.12-canary-
|
|
3
|
+
"version": "1.4.12-canary-becf0a0e-20250808091433",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"memfs": "4.20.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.4.12-canary-
|
|
38
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.4.12-canary-becf0a0e-20250808091433"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@swc/helpers": ">=0.5.1"
|