@rspack/browser 1.7.9 → 1.7.11
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.mjs +21 -9
- package/dist/napi-binding.d.ts +35 -1
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -56875,27 +56875,39 @@ function SwcJsMinimizerPlugin_isObject(value) {
|
|
|
56875
56875
|
}
|
|
56876
56876
|
function getRawExtractCommentsOptions(extractComments) {
|
|
56877
56877
|
const conditionStr = (condition)=>{
|
|
56878
|
-
if (void 0 === condition || true === condition) return
|
|
56878
|
+
if (void 0 === condition || true === condition) return {
|
|
56879
|
+
source: '@preserve|@lic|@cc_on|^\\**!',
|
|
56880
|
+
flags: ''
|
|
56881
|
+
};
|
|
56879
56882
|
if (false === condition) throw Error('unreachable');
|
|
56880
|
-
return
|
|
56883
|
+
return {
|
|
56884
|
+
source: condition.source,
|
|
56885
|
+
flags: condition.flags
|
|
56886
|
+
};
|
|
56881
56887
|
};
|
|
56882
56888
|
if ('boolean' == typeof extractComments) {
|
|
56883
56889
|
if (!extractComments) return;
|
|
56890
|
+
const { source, flags } = conditionStr(extractComments);
|
|
56884
56891
|
const res = {
|
|
56885
|
-
condition:
|
|
56892
|
+
condition: source,
|
|
56893
|
+
conditionFlags: flags
|
|
56886
56894
|
};
|
|
56887
56895
|
return res;
|
|
56888
56896
|
}
|
|
56889
56897
|
if (extractComments instanceof RegExp) {
|
|
56898
|
+
const { source, flags } = conditionStr(extractComments);
|
|
56890
56899
|
const res = {
|
|
56891
|
-
condition:
|
|
56900
|
+
condition: source,
|
|
56901
|
+
conditionFlags: flags
|
|
56892
56902
|
};
|
|
56893
56903
|
return res;
|
|
56894
56904
|
}
|
|
56895
56905
|
if (SwcJsMinimizerPlugin_isObject(extractComments)) {
|
|
56896
56906
|
if (false === extractComments.condition) return;
|
|
56907
|
+
const { source, flags } = conditionStr(extractComments.condition);
|
|
56897
56908
|
const res = {
|
|
56898
|
-
condition:
|
|
56909
|
+
condition: source,
|
|
56910
|
+
conditionFlags: flags,
|
|
56899
56911
|
banner: extractComments.banner
|
|
56900
56912
|
};
|
|
56901
56913
|
return res;
|
|
@@ -58153,7 +58165,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
58153
58165
|
if ('object' == typeof rspackFuture) {
|
|
58154
58166
|
D(rspackFuture, 'bundlerInfo', {});
|
|
58155
58167
|
if ('object' == typeof rspackFuture.bundlerInfo) {
|
|
58156
|
-
D(rspackFuture.bundlerInfo, 'version', "1.7.
|
|
58168
|
+
D(rspackFuture.bundlerInfo, 'version', "1.7.11");
|
|
58157
58169
|
D(rspackFuture.bundlerInfo, 'bundler', 'rspack');
|
|
58158
58170
|
D(rspackFuture.bundlerInfo, 'force', !library);
|
|
58159
58171
|
}
|
|
@@ -60423,7 +60435,7 @@ class MultiStats {
|
|
|
60423
60435
|
return obj;
|
|
60424
60436
|
});
|
|
60425
60437
|
if (childOptions.version) {
|
|
60426
|
-
obj.rspackVersion = "1.7.
|
|
60438
|
+
obj.rspackVersion = "1.7.11";
|
|
60427
60439
|
obj.version = "5.75.0";
|
|
60428
60440
|
}
|
|
60429
60441
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -62263,7 +62275,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
62263
62275
|
},
|
|
62264
62276
|
version: (object)=>{
|
|
62265
62277
|
object.version = "5.75.0";
|
|
62266
|
-
object.rspackVersion = "1.7.
|
|
62278
|
+
object.rspackVersion = "1.7.11";
|
|
62267
62279
|
},
|
|
62268
62280
|
env: (object, _compilation, _context, { _env })=>{
|
|
62269
62281
|
object.env = _env;
|
|
@@ -66994,7 +67006,7 @@ function transformSync(source, options) {
|
|
|
66994
67006
|
const _options = JSON.stringify(options || {});
|
|
66995
67007
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
66996
67008
|
}
|
|
66997
|
-
const exports_rspackVersion = "1.7.
|
|
67009
|
+
const exports_rspackVersion = "1.7.11";
|
|
66998
67010
|
const exports_version = "5.75.0";
|
|
66999
67011
|
const exports_WebpackError = Error;
|
|
67000
67012
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -1077,6 +1077,30 @@ export interface JsRsdoctorChunkModules {
|
|
|
1077
1077
|
modules: Array<number>
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
|
+
export interface JsRsdoctorConnection {
|
|
1081
|
+
ukey: number
|
|
1082
|
+
dependencyId: string
|
|
1083
|
+
module: number
|
|
1084
|
+
originModule?: number
|
|
1085
|
+
resolvedModule: number
|
|
1086
|
+
dependencyType: string
|
|
1087
|
+
userRequest: string
|
|
1088
|
+
loc?: string
|
|
1089
|
+
active: boolean
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
export interface JsRsdoctorConnectionsOnlyImport {
|
|
1093
|
+
moduleUkey: number
|
|
1094
|
+
modulePath: string
|
|
1095
|
+
connections: Array<JsRsdoctorConnectionsOnlyImportConnection>
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export interface JsRsdoctorConnectionsOnlyImportConnection {
|
|
1099
|
+
originModule?: number
|
|
1100
|
+
dependencyType: string
|
|
1101
|
+
userRequest: string
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1080
1104
|
export interface JsRsdoctorDependency {
|
|
1081
1105
|
ukey: number
|
|
1082
1106
|
kind: string
|
|
@@ -1102,7 +1126,6 @@ export interface JsRsdoctorExportInfo {
|
|
|
1102
1126
|
from?: number
|
|
1103
1127
|
variable?: number
|
|
1104
1128
|
identifier?: JsRsdoctorStatement
|
|
1105
|
-
sideEffects: Array<number>
|
|
1106
1129
|
}
|
|
1107
1130
|
|
|
1108
1131
|
export interface JsRsdoctorJsonModuleSize {
|
|
@@ -1124,12 +1147,15 @@ export interface JsRsdoctorModule {
|
|
|
1124
1147
|
chunks: Array<number>
|
|
1125
1148
|
issuerPath: Array<number>
|
|
1126
1149
|
bailoutReason: Array<string>
|
|
1150
|
+
sideEffectsLocations: Array<JsRsdoctorSideEffectLocation>
|
|
1151
|
+
exportsType: string
|
|
1127
1152
|
}
|
|
1128
1153
|
|
|
1129
1154
|
export interface JsRsdoctorModuleGraph {
|
|
1130
1155
|
modules: Array<JsRsdoctorModule>
|
|
1131
1156
|
dependencies: Array<JsRsdoctorDependency>
|
|
1132
1157
|
chunkModules: Array<JsRsdoctorChunkModules>
|
|
1158
|
+
connectionsOnlyImports: Array<JsRsdoctorConnectionsOnlyImport>
|
|
1133
1159
|
}
|
|
1134
1160
|
|
|
1135
1161
|
export interface JsRsdoctorModuleGraphModule {
|
|
@@ -1173,6 +1199,13 @@ export interface JsRsdoctorSideEffect {
|
|
|
1173
1199
|
variable?: number
|
|
1174
1200
|
}
|
|
1175
1201
|
|
|
1202
|
+
export interface JsRsdoctorSideEffectLocation {
|
|
1203
|
+
location: string
|
|
1204
|
+
nodeType: string
|
|
1205
|
+
module: number
|
|
1206
|
+
request: string
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1176
1209
|
export interface JsRsdoctorSourceMapFeatures {
|
|
1177
1210
|
cheap?: boolean
|
|
1178
1211
|
module?: boolean
|
|
@@ -2202,6 +2235,7 @@ export interface RawExternalsPresets {
|
|
|
2202
2235
|
export interface RawExtractComments {
|
|
2203
2236
|
banner?: string | boolean
|
|
2204
2237
|
condition?: string
|
|
2238
|
+
conditionFlags?: string
|
|
2205
2239
|
}
|
|
2206
2240
|
|
|
2207
2241
|
export interface RawFallbackCacheGroupOptions {
|
|
Binary file
|
package/package.json
CHANGED