@rspack/core 2.0.0-beta.2 → 2.0.0-beta.4

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.
@@ -1,5 +1,5 @@
1
1
  import type binding from '@rspack/binding';
2
- import type * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.d';
2
+ import type * as liteTapable from '../../compiled/@rspack/lite-tapable/dist';
3
3
  import type { Compiler } from '../Compiler.js';
4
4
  type CreateHookMapRegisterTaps = <H extends liteTapable.Hook<any, any, any>>(registerKind: binding.RegisterJsTapKind, getHookMap: () => liteTapable.HookMap<H>, createTap: (queried: liteTapable.QueriedHookMap<H>) => any) => (stages: number[]) => binding.JsTap[];
5
5
  type CreateHookRegisterTaps = <T, R, A>(registerKind: binding.RegisterJsTapKind, getHook: () => liteTapable.Hook<T, R, A>, createTap: (queried: liteTapable.QueriedHook<T, R, A>) => any) => (stages: number[]) => binding.JsTap[];
package/module.d.ts CHANGED
@@ -176,7 +176,10 @@ declare namespace Rspack {
176
176
  id: ModuleId;
177
177
  loaded: boolean;
178
178
  parents: NodeJS.Module['id'][] | null | undefined;
179
- children: NodeJS.Module['id'][];
179
+ // Keep `any[]` for compatibility:
180
+ // - Rspack runtime uses module ids
181
+ // - `@types/node` defines `children` as `Module[]`.
182
+ children: any[];
180
183
  hot?: Hot;
181
184
  }
182
185
 
@@ -210,7 +213,6 @@ declare namespace Rspack {
210
213
  interface Process {
211
214
  env: {
212
215
  [key: string]: any;
213
- NODE_ENV: 'development' | 'production' | (string & {});
214
216
  };
215
217
  }
216
218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.4",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -41,13 +41,13 @@
41
41
  "@napi-rs/wasm-runtime": "1.0.7",
42
42
  "@rsbuild/plugin-node-polyfill": "^1.4.4",
43
43
  "@rspack/lite-tapable": "1.1.0",
44
- "@rslib/core": "0.19.5",
44
+ "@rslib/core": "0.19.6",
45
45
  "@swc/types": "0.1.25",
46
46
  "@types/node": "^20.19.33",
47
47
  "@types/watchpack": "^2.4.5",
48
48
  "browserslist-load-config": "^1.0.1",
49
49
  "browserslist-to-es-version": "^1.4.1",
50
- "enhanced-resolve": "5.18.4",
50
+ "enhanced-resolve": "5.19.0",
51
51
  "glob-to-regexp": "^0.4.1",
52
52
  "memfs": "4.53.0",
53
53
  "prebundle": "^1.6.2",
@@ -55,10 +55,10 @@
55
55
  "tsx": "^4.21.0",
56
56
  "typescript": "^5.9.3",
57
57
  "watchpack": "^2.4.4",
58
- "webpack-sources": "3.3.3"
58
+ "webpack-sources": "3.3.4"
59
59
  },
60
60
  "dependencies": {
61
- "@rspack/binding": "2.0.0-beta.2"
61
+ "@rspack/binding": "2.0.0-beta.4"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",
@@ -75,9 +75,6 @@
75
75
  "scripts": {
76
76
  "build": "rslib build",
77
77
  "build:browser": "rslib build -c rslib.browser.config.ts",
78
- "dev": "rslib build --watch",
79
- "doc-coverage": "tsx ./scripts/check-documentation-coverage.ts",
80
- "api-extractor": "api-extractor run --verbose",
81
- "api-extractor:ci": "api-extractor run --verbose || diff temp/core.api.md etc/core.api.md"
78
+ "dev": "rslib build --watch"
82
79
  }
83
80
  }