@rspack-debug/browser 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 (56) hide show
  1. package/dist/Compilation.d.ts +3 -0
  2. package/dist/Compiler.d.ts +1 -0
  3. package/dist/FileSystem.d.ts +1 -1
  4. package/dist/ModuleGraph.d.ts +3 -1
  5. package/dist/ModuleGraphConnection.d.ts +10 -0
  6. package/dist/NormalModule.d.ts +0 -1
  7. package/dist/RuntimeGlobals.d.ts +1 -1
  8. package/dist/browser/BrowserRequirePlugin.d.ts +1 -1
  9. package/dist/browser/fs.d.ts +1 -1
  10. package/dist/builtin-loader/swc/pluginImport.d.ts +1 -1
  11. package/dist/builtin-loader/swc/types.d.ts +36 -1
  12. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +4 -2
  13. package/dist/builtin-plugin/EsmNodeTargetPlugin.d.ts +9 -0
  14. package/dist/builtin-plugin/HashedModuleIdsPlugin.d.ts +10 -0
  15. package/dist/builtin-plugin/ProgressPlugin.d.ts +5 -4
  16. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
  17. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +9 -9
  18. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +2 -1
  19. package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -0
  20. package/dist/builtin-plugin/index.d.ts +3 -0
  21. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +3 -3
  22. package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
  23. package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +13 -0
  24. package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +39 -0
  25. package/dist/builtin-plugin/rsc/index.d.ts +24 -0
  26. package/dist/checkNodeVersion.d.ts +1 -0
  27. package/dist/config/adapterRuleUse.d.ts +1 -1
  28. package/dist/config/devServer.d.ts +102 -237
  29. package/dist/config/normalization.d.ts +4 -4
  30. package/dist/config/types.d.ts +184 -71
  31. package/dist/container/ContainerPlugin.d.ts +3 -2
  32. package/dist/container/ContainerReferencePlugin.d.ts +4 -3
  33. package/dist/container/ModuleFederationManifestPlugin.d.ts +10 -3
  34. package/dist/container/ModuleFederationPlugin.d.ts +20 -1
  35. package/dist/container/ModuleFederationPluginV1.d.ts +2 -2
  36. package/dist/container/ModuleFederationRuntimePlugin.d.ts +4 -0
  37. package/dist/exports.d.ts +16 -7
  38. package/dist/index.d.ts +2 -1
  39. package/dist/index.js +11541 -7053
  40. package/dist/napi-binding.d.ts +254 -94
  41. package/dist/rspack.wasi-browser.js +15 -3
  42. package/dist/sharing/CollectSharedEntryPlugin.d.ts +22 -0
  43. package/dist/sharing/ConsumeSharedPlugin.d.ts +16 -3
  44. package/dist/sharing/IndependentSharedPlugin.d.ts +35 -0
  45. package/dist/sharing/ProvideSharedPlugin.d.ts +22 -2
  46. package/dist/sharing/SharePlugin.d.ts +43 -5
  47. package/dist/sharing/SharedContainerPlugin.d.ts +23 -0
  48. package/dist/sharing/SharedUsedExportsOptimizerPlugin.d.ts +14 -0
  49. package/dist/sharing/TreeShakingSharedPlugin.d.ts +16 -0
  50. package/dist/sharing/utils.d.ts +1 -0
  51. package/dist/swc.d.ts +1 -1
  52. package/dist/util/createHash.d.ts +1 -1
  53. package/dist/util/supportsColor.d.ts +6 -0
  54. package/dist/wasi-worker-browser.mjs +10300 -6050
  55. package/package.json +6 -4
  56. package/dist/rslib-runtime.js +0 -68
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-debug/browser",
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
6
  "description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
@@ -29,12 +29,14 @@
29
29
  "directory": "packages/rspack-browser"
30
30
  },
31
31
  "dependencies": {
32
- "@napi-rs/wasm-runtime": "1.0.7",
32
+ "@emnapi/core": "1.9.2",
33
+ "@emnapi/runtime": "1.9.2",
34
+ "@napi-rs/wasm-runtime": "1.1.3",
33
35
  "@rspack/lite-tapable": "1.1.0",
34
- "@swc/types": "0.1.25",
36
+ "@swc/types": "0.1.26",
35
37
  "@types/watchpack": "^2.4.5",
36
38
  "memfs": "4.53.0",
37
- "webpack-sources": "3.3.3"
39
+ "webpack-sources": "3.3.4"
38
40
  },
39
41
  "peerDependencies": {
40
42
  "@swc/helpers": ">=0.5.1"
@@ -1,68 +0,0 @@
1
- var __webpack_modules__ = {};
2
- var __webpack_module_cache__ = {};
3
- function __webpack_require__(moduleId) {
4
- var cachedModule = __webpack_module_cache__[moduleId];
5
- if (void 0 !== cachedModule) return cachedModule.exports;
6
- var module = __webpack_module_cache__[moduleId] = {
7
- id: moduleId,
8
- loaded: false,
9
- exports: {}
10
- };
11
- __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
12
- module.loaded = true;
13
- return module.exports;
14
- }
15
- __webpack_require__.m = __webpack_modules__;
16
- (()=>{
17
- __webpack_require__.add = function(modules) {
18
- Object.assign(__webpack_require__.m, modules);
19
- };
20
- })();
21
- (()=>{
22
- __webpack_require__.n = (module)=>{
23
- var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
24
- __webpack_require__.d(getter, {
25
- a: getter
26
- });
27
- return getter;
28
- };
29
- })();
30
- (()=>{
31
- __webpack_require__.d = (exports, definition)=>{
32
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: definition[key]
35
- });
36
- };
37
- })();
38
- (()=>{
39
- __webpack_require__.g = (()=>{
40
- if ('object' == typeof globalThis) return globalThis;
41
- try {
42
- return this || new Function('return this')();
43
- } catch (e) {
44
- if ('object' == typeof window) return window;
45
- }
46
- })();
47
- })();
48
- (()=>{
49
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
50
- })();
51
- (()=>{
52
- __webpack_require__.r = (exports)=>{
53
- if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
54
- value: 'Module'
55
- });
56
- Object.defineProperty(exports, '__esModule', {
57
- value: true
58
- });
59
- };
60
- })();
61
- (()=>{
62
- __webpack_require__.nmd = (module)=>{
63
- module.paths = [];
64
- if (!module.children) module.children = [];
65
- return module;
66
- };
67
- })();
68
- export { __webpack_require__ };