@rspack-debug/browser 2.0.0-beta.6 → 2.0.0-beta.8

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.
@@ -530,6 +530,7 @@ export declare enum BuiltinPluginName {
530
530
  DynamicEntryPlugin = 'DynamicEntryPlugin',
531
531
  ExternalsPlugin = 'ExternalsPlugin',
532
532
  NodeTargetPlugin = 'NodeTargetPlugin',
533
+ EsmNodeTargetPlugin = 'EsmNodeTargetPlugin',
533
534
  ElectronTargetPlugin = 'ElectronTargetPlugin',
534
535
  EnableChunkLoadingPlugin = 'EnableChunkLoadingPlugin',
535
536
  EnableLibraryPlugin = 'EnableLibraryPlugin',
@@ -1060,6 +1061,7 @@ export interface JsRscClientPluginOptions {
1060
1061
  export interface JsRscServerPluginOptions {
1061
1062
  coordinator: JsCoordinator
1062
1063
  onServerComponentChanges?: (() => void) | undefined | null
1064
+ onManifest?: ((arg: string) => Promise<undefined>) | undefined | null
1063
1065
  }
1064
1066
 
1065
1067
  export interface JsRsdoctorAsset {
@@ -1111,6 +1113,18 @@ export interface JsRsdoctorConnection {
1111
1113
  active: boolean
1112
1114
  }
1113
1115
 
1116
+ export interface JsRsdoctorConnectionsOnlyImport {
1117
+ moduleUkey: number
1118
+ modulePath: string
1119
+ connections: Array<JsRsdoctorConnectionsOnlyImportConnection>
1120
+ }
1121
+
1122
+ export interface JsRsdoctorConnectionsOnlyImportConnection {
1123
+ originModule?: number
1124
+ dependencyType: string
1125
+ userRequest: string
1126
+ }
1127
+
1114
1128
  export interface JsRsdoctorDependency {
1115
1129
  ukey: number
1116
1130
  kind: string
@@ -1158,12 +1172,14 @@ export interface JsRsdoctorModule {
1158
1172
  issuerPath: Array<number>
1159
1173
  bailoutReason: Array<string>
1160
1174
  sideEffectsLocations: Array<JsRsdoctorSideEffectLocation>
1175
+ exportsType: string
1161
1176
  }
1162
1177
 
1163
1178
  export interface JsRsdoctorModuleGraph {
1164
1179
  modules: Array<JsRsdoctorModule>
1165
1180
  dependencies: Array<JsRsdoctorDependency>
1166
1181
  chunkModules: Array<JsRsdoctorChunkModules>
1182
+ connectionsOnlyImports: Array<JsRsdoctorConnectionsOnlyImport>
1167
1183
  }
1168
1184
 
1169
1185
  export interface JsRsdoctorModuleGraphModule {
@@ -1758,12 +1774,6 @@ export interface NapiResolveOptions {
1758
1774
  * Default `false`
1759
1775
  */
1760
1776
  enablePnp?: boolean
1761
- /**
1762
- * Path to PnP manifest file
1763
- *
1764
- * Default `None`
1765
- */
1766
- pnpManifest?: string | false
1767
1777
  }
1768
1778
 
1769
1779
  export interface NativeWatcherOptions {
@@ -2179,6 +2189,12 @@ export interface RawDynamicEntryPluginOptions {
2179
2189
  entry: () => Promise<RawEntryDynamicResult[]>
2180
2190
  }
2181
2191
 
2192
+ export interface RawEnableLibraryPluginOptions {
2193
+ libraryType: string
2194
+ preserveModules?: string
2195
+ splitChunks?: RawSplitChunksOptions
2196
+ }
2197
+
2182
2198
  export interface RawEntryDynamicResult {
2183
2199
  import: Array<string>
2184
2200
  options: JsEntryOptions
@@ -2656,7 +2672,6 @@ export interface RawOccurrenceChunkIdsPluginOptions {
2656
2672
  }
2657
2673
 
2658
2674
  export interface RawOptimizationOptions {
2659
- removeAvailableModules: boolean
2660
2675
  sideEffects: boolean | string
2661
2676
  usedExports: boolean | string
2662
2677
  providedExports: boolean
@@ -2821,7 +2836,6 @@ export interface RawResolveOptions {
2821
2836
  restrictions?: (string | RegExp)[]
2822
2837
  roots?: Array<string>
2823
2838
  pnp?: boolean
2824
- pnpManifest?: string | false
2825
2839
  }
2826
2840
 
2827
2841
  export interface RawResolveOptionsWithDependencyType {
@@ -2849,7 +2863,6 @@ export interface RawResolveOptionsWithDependencyType {
2849
2863
  dependencyType?: string
2850
2864
  resolveToContext?: boolean
2851
2865
  pnp?: boolean
2852
- pnpManifest?: string | false
2853
2866
  }
2854
2867
 
2855
2868
  export interface RawResolveTsconfigOptions {
@@ -2875,6 +2888,11 @@ export interface RawRslibPluginOptions {
2875
2888
  * @default `false`
2876
2889
  */
2877
2890
  forceNodeShims?: boolean
2891
+ /**
2892
+ * Externalize Node.js builtin modules with ESM-aware external types
2893
+ * @default `false`
2894
+ */
2895
+ externalEsmNodeBuiltin?: boolean
2878
2896
  }
2879
2897
 
2880
2898
  export interface RawRstestPluginOptions {
@@ -3037,8 +3055,7 @@ export interface RealDependencyLocation {
3037
3055
  end?: SourcePosition
3038
3056
  }
3039
3057
 
3040
- /**
3041
- * this is a process level tracing, which means it would be shared by all compilers in the same process
3058
+ /** * this is a process level tracing, which means it would be shared by all compilers in the same process
3042
3059
  * only the first call would take effect, the following calls would be ignored
3043
3060
  * Some code is modified based on
3044
3061
  * https://github.com/swc-project/swc/blob/d1d0607158ab40463d1b123fed52cc526eba8385/bindings/binding_core_node/src/util.rs#L29-L58
@@ -4,20 +4,12 @@ function __webpack_require__(moduleId) {
4
4
  var cachedModule = __webpack_module_cache__[moduleId];
5
5
  if (void 0 !== cachedModule) return cachedModule.exports;
6
6
  var module = __webpack_module_cache__[moduleId] = {
7
- id: moduleId,
8
- loaded: false,
9
7
  exports: {}
10
8
  };
11
9
  __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
12
- module.loaded = true;
13
10
  return module.exports;
14
11
  }
15
12
  __webpack_require__.m = __webpack_modules__;
16
- (()=>{
17
- __webpack_require__.add = function(modules) {
18
- Object.assign(__webpack_require__.m, modules);
19
- };
20
- })();
21
13
  (()=>{
22
14
  __webpack_require__.n = (module)=>{
23
15
  var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
@@ -35,6 +27,11 @@ __webpack_require__.m = __webpack_modules__;
35
27
  });
36
28
  };
37
29
  })();
30
+ (()=>{
31
+ __webpack_require__.add = function(modules) {
32
+ Object.assign(__webpack_require__.m, modules);
33
+ };
34
+ })();
38
35
  (()=>{
39
36
  __webpack_require__.g = (()=>{
40
37
  if ('object' == typeof globalThis) return globalThis;