@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.
- package/compiled/webpack-sources/index.js +188 -131
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +6 -3
- package/dist/Compilation.d.ts +1 -1
- package/dist/Compiler.d.ts +1 -1
- package/dist/ContextModuleFactory.d.ts +1 -1
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/MultiWatching.d.ts +1 -1
- package/dist/NormalModule.d.ts +1 -1
- package/dist/NormalModuleFactory.d.ts +1 -1
- package/dist/Watching.d.ts +1 -1
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +4 -2
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +5 -4
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +2 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
- package/dist/config/types.d.ts +6 -0
- package/dist/exports.d.ts +1 -1
- package/dist/index.js +98 -93
- package/dist/lib/Cache.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +1 -1
- package/dist/stats/StatsPrinter.d.ts +1 -1
- package/dist/taps/types.d.ts +1 -1
- package/module.d.ts +4 -2
- package/package.json +6 -9
package/dist/taps/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type binding from '@rspack/binding';
|
|
2
|
-
import type * as liteTapable from '../../compiled/@rspack/lite-tapable/dist
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
58
|
+
"webpack-sources": "3.3.4"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@rspack/binding": "2.0.0-beta.
|
|
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
|
}
|