@rspack-debug/core 2.0.0-canary.20260120 → 2.0.0-rc.2

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.
Files changed (95) hide show
  1. package/README.md +1 -1
  2. package/compiled/@rspack/lite-tapable/dist/index.d.ts +175 -0
  3. package/compiled/@rspack/lite-tapable/license +22 -0
  4. package/compiled/@rspack/lite-tapable/package.json +1 -0
  5. package/compiled/@swc/types/index.d.ts +15 -9
  6. package/compiled/@swc/types/package.json +1 -1
  7. package/compiled/connect-next/index.d.ts +56 -0
  8. package/compiled/connect-next/license +26 -0
  9. package/compiled/connect-next/package.json +1 -0
  10. package/compiled/http-proxy-middleware/index.d.ts +544 -0
  11. package/compiled/http-proxy-middleware/license +22 -0
  12. package/compiled/http-proxy-middleware/package.json +1 -0
  13. package/compiled/open/index.d.ts +161 -0
  14. package/compiled/open/package.json +1 -0
  15. package/compiled/watchpack/index.d.ts +2 -0
  16. package/compiled/webpack-sources/index.js +188 -131
  17. package/compiled/webpack-sources/package.json +1 -1
  18. package/compiled/webpack-sources/types.d.ts +6 -3
  19. package/dist/BuildInfo.d.ts +1 -1
  20. package/dist/Compilation.d.ts +5 -2
  21. package/dist/Compiler.d.ts +4 -3
  22. package/dist/ContextModuleFactory.d.ts +1 -1
  23. package/dist/FileSystem.d.ts +1 -1
  24. package/dist/Module.d.ts +1 -1
  25. package/dist/ModuleGraph.d.ts +3 -1
  26. package/dist/ModuleGraphConnection.d.ts +10 -0
  27. package/dist/MultiCompiler.d.ts +1 -1
  28. package/dist/MultiWatching.d.ts +1 -1
  29. package/dist/NativeWatchFileSystem.d.ts +1 -1
  30. package/dist/NormalModule.d.ts +1 -2
  31. package/dist/NormalModuleFactory.d.ts +1 -1
  32. package/dist/RuntimeGlobals.d.ts +1 -1
  33. package/dist/Watching.d.ts +1 -1
  34. package/dist/builtin-loader/swc/pluginImport.d.ts +1 -1
  35. package/dist/builtin-loader/swc/types.d.ts +37 -2
  36. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +4 -2
  37. package/dist/builtin-plugin/EsmNodeTargetPlugin.d.ts +9 -0
  38. package/dist/builtin-plugin/HashedModuleIdsPlugin.d.ts +10 -0
  39. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/ProgressPlugin.d.ts +5 -4
  41. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +3 -3
  42. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +9 -9
  44. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +2 -1
  45. package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -0
  46. package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
  47. package/dist/builtin-plugin/index.d.ts +3 -0
  48. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +3 -3
  49. package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
  50. package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +13 -0
  51. package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +39 -0
  52. package/dist/builtin-plugin/rsc/index.d.ts +24 -0
  53. package/dist/checkNodeVersion.d.ts +1 -0
  54. package/dist/config/adapterRuleUse.d.ts +1 -1
  55. package/dist/config/devServer.d.ts +102 -237
  56. package/dist/config/normalization.d.ts +4 -4
  57. package/dist/config/types.d.ts +184 -71
  58. package/dist/container/ContainerPlugin.d.ts +3 -2
  59. package/dist/container/ContainerReferencePlugin.d.ts +4 -3
  60. package/dist/container/ModuleFederationManifestPlugin.d.ts +10 -3
  61. package/dist/container/ModuleFederationPlugin.d.ts +20 -1
  62. package/dist/container/ModuleFederationPluginV1.d.ts +2 -2
  63. package/dist/container/ModuleFederationRuntimePlugin.d.ts +4 -0
  64. package/dist/exports.d.ts +17 -8
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +1751 -636
  67. package/dist/lib/Cache.d.ts +1 -1
  68. package/dist/lib/HookWebpackError.d.ts +1 -1
  69. package/dist/moduleFederationDefaultRuntime.js +1 -1
  70. package/dist/node/NodeWatchFileSystem.d.ts +1 -1
  71. package/dist/rspack.d.ts +1 -1
  72. package/dist/sharing/CollectSharedEntryPlugin.d.ts +22 -0
  73. package/dist/sharing/ConsumeSharedPlugin.d.ts +16 -3
  74. package/dist/sharing/IndependentSharedPlugin.d.ts +35 -0
  75. package/dist/sharing/ProvideSharedPlugin.d.ts +22 -2
  76. package/dist/sharing/SharePlugin.d.ts +43 -5
  77. package/dist/sharing/SharedContainerPlugin.d.ts +23 -0
  78. package/dist/sharing/SharedUsedExportsOptimizerPlugin.d.ts +14 -0
  79. package/dist/sharing/TreeShakingSharedPlugin.d.ts +16 -0
  80. package/dist/sharing/utils.d.ts +1 -0
  81. package/dist/stats/StatsFactory.d.ts +1 -1
  82. package/dist/stats/StatsPrinter.d.ts +1 -1
  83. package/dist/swc.d.ts +2 -2
  84. package/dist/taps/types.d.ts +1 -1
  85. package/dist/util/createHash.d.ts +1 -1
  86. package/dist/util/source.d.ts +1 -1
  87. package/dist/util/supportsColor.d.ts +6 -0
  88. package/dist/worker.js +21 -20
  89. package/hot/dev-server.js +1 -1
  90. package/hot/emitter.js +0 -2
  91. package/hot/log.js +0 -2
  92. package/hot/only-dev-server.js +1 -1
  93. package/module.d.ts +4 -2
  94. package/package.json +20 -22
  95. package/dist/rslib-runtime.js +0 -29
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@rspack-debug/core",
3
- "version": "2.0.0-canary.20260120",
3
+ "version": "2.0.0-rc.2",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
- "description": "The fast Rust-based web bundler with webpack-compatible API",
6
+ "description": "Fast Rust-based bundler for the web with a modernized webpack API",
7
7
  "types": "./dist/index.d.ts",
8
8
  "publishConfig": {
9
9
  "access": "public",
@@ -37,31 +37,32 @@
37
37
  "directory": "packages/rspack"
38
38
  },
39
39
  "devDependencies": {
40
- "@ast-grep/napi": "^0.40.5",
41
- "@napi-rs/wasm-runtime": "1.0.7",
42
- "@rsbuild/plugin-node-polyfill": "^1.4.2",
43
- "@rslib/core": "0.19.2",
44
- "@swc/types": "0.1.25",
45
- "@types/node": "^20.19.29",
40
+ "@ast-grep/napi": "^0.42.1",
41
+ "@napi-rs/wasm-runtime": "1.1.3",
42
+ "@rsbuild/plugin-node-polyfill": "^1.4.4",
43
+ "@rslib/core": "0.21.0",
44
+ "@rspack/lite-tapable": "1.1.0",
45
+ "@swc/types": "0.1.26",
46
+ "@types/node": "^20.19.39",
46
47
  "@types/watchpack": "^2.4.5",
47
48
  "browserslist-load-config": "^1.0.1",
48
49
  "browserslist-to-es-version": "^1.4.1",
49
- "enhanced-resolve": "5.18.4",
50
- "glob-to-regexp": "^0.4.1",
50
+ "connect-next": "^4.0.1",
51
+ "enhanced-resolve": "5.20.1",
52
+ "http-proxy-middleware": "^3.0.5",
51
53
  "memfs": "4.53.0",
52
- "prebundle": "^1.6.0",
54
+ "open": "^11.0.0",
55
+ "prebundle": "^1.6.4",
53
56
  "tinypool": "^1.1.1",
54
- "tsx": "^4.21.0",
55
- "typescript": "^5.9.3",
56
- "watchpack": "^2.4.4",
57
- "webpack-sources": "3.3.3"
57
+ "typescript": "^6.0.2",
58
+ "watchpack": "2.4.4",
59
+ "webpack-sources": "3.3.4"
58
60
  },
59
61
  "dependencies": {
60
- "@rspack/lite-tapable": "1.1.0",
61
- "@rspack/binding": "npm:@rspack-debug/binding@2.0.0-canary.20260120"
62
+ "@rspack/binding": "npm:@rspack-debug/binding@2.0.0-rc.2"
62
63
  },
63
64
  "peerDependencies": {
64
- "@module-federation/runtime-tools": ">=0.22.0",
65
+ "@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",
65
66
  "@swc/helpers": ">=0.5.1"
66
67
  },
67
68
  "peerDependenciesMeta": {
@@ -75,9 +76,6 @@
75
76
  "scripts": {
76
77
  "build": "rslib build",
77
78
  "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"
79
+ "dev": "rslib build --watch"
82
80
  }
83
81
  }
@@ -1,29 +0,0 @@
1
- var __webpack_modules__ = {}, __webpack_module_cache__ = {};
2
- function __webpack_require__(moduleId) {
3
- var cachedModule = __webpack_module_cache__[moduleId];
4
- if (void 0 !== cachedModule) return cachedModule.exports;
5
- var module = __webpack_module_cache__[moduleId] = {
6
- exports: {}
7
- };
8
- return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
9
- }
10
- __webpack_require__.m = __webpack_modules__, __webpack_require__.add = function(modules) {
11
- Object.assign(__webpack_require__.m, modules);
12
- }, __webpack_require__.n = (module)=>{
13
- var getter = module && module.__esModule ? ()=>module.default : ()=>module;
14
- return __webpack_require__.d(getter, {
15
- a: getter
16
- }), getter;
17
- }, __webpack_require__.d = (exports, definition)=>{
18
- for(var key in definition)__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key) && Object.defineProperty(exports, key, {
19
- enumerable: !0,
20
- get: definition[key]
21
- });
22
- }, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports)=>{
23
- "u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
24
- value: 'Module'
25
- }), Object.defineProperty(exports, '__esModule', {
26
- value: !0
27
- });
28
- };
29
- export { __webpack_require__ };