@rsbuild/plugin-node-polyfill 1.4.0 → 1.4.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.
package/README.md CHANGED
@@ -112,6 +112,7 @@ const bufferData = Buffer.from("abc");
112
112
  - `readline`
113
113
  - `repl`
114
114
  - `tls`
115
+ - `v8`
115
116
 
116
117
  Currently there is no polyfill for the above modules on the browser side, so when you import the above modules, it will automatically fallback to an empty object.
117
118
 
package/dist/index.cjs CHANGED
@@ -83,6 +83,7 @@ const builtinMappingResolved = {
83
83
  tty: libs_require.resolve('tty-browserify'),
84
84
  url: libs_require.resolve('url/'),
85
85
  util: libs_require.resolve('util/util.js'),
86
+ v8: null,
86
87
  vm: libs_require.resolve('vm-browserify'),
87
88
  zlib: libs_require.resolve('browserify-zlib')
88
89
  };
package/dist/index.js CHANGED
@@ -46,6 +46,7 @@ const builtinMappingResolved = {
46
46
  tty: libs_require.resolve('tty-browserify'),
47
47
  url: libs_require.resolve('url/'),
48
48
  util: libs_require.resolve('util/util.js'),
49
+ v8: null,
49
50
  vm: libs_require.resolve('vm-browserify'),
50
51
  zlib: libs_require.resolve('browserify-zlib')
51
52
  };
package/dist/libs.d.ts CHANGED
@@ -35,6 +35,7 @@ export declare const builtinMappingResolved: {
35
35
  readonly tty: string;
36
36
  readonly url: string;
37
37
  readonly util: string;
38
+ readonly v8: null;
38
39
  readonly vm: string;
39
40
  readonly zlib: string;
40
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-node-polyfill",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "repository": "https://github.com/rspack-contrib/rsbuild-plugin-node-polyfill",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -61,16 +61,16 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@biomejs/biome": "^1.9.4",
64
- "@playwright/test": "^1.53.2",
65
- "@rsbuild/core": "^1.4.4",
66
- "@rslib/core": "^0.10.4",
67
- "@rstest/core": "0.0.6",
68
- "@types/node": "^22.16.0",
64
+ "@playwright/test": "^1.55.0",
65
+ "@rsbuild/core": "^1.4.15",
66
+ "@rslib/core": "^0.12.2",
67
+ "@rstest/core": "0.2.2",
68
+ "@types/node": "^22.17.2",
69
69
  "nano-staged": "^0.8.0",
70
- "playwright": "^1.53.2",
71
- "simple-git-hooks": "^2.13.0",
72
- "tsx": "^4.20.3",
73
- "typescript": "^5.8.3"
70
+ "playwright": "^1.55.0",
71
+ "simple-git-hooks": "^2.13.1",
72
+ "tsx": "^4.20.4",
73
+ "typescript": "^5.9.2"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@rsbuild/core": "1.x"
@@ -80,7 +80,7 @@
80
80
  "optional": true
81
81
  }
82
82
  },
83
- "packageManager": "pnpm@10.12.4",
83
+ "packageManager": "pnpm@10.15.0",
84
84
  "publishConfig": {
85
85
  "access": "public",
86
86
  "registry": "https://registry.npmjs.org/"