@rsbuild/plugin-node-polyfill 0.0.28 → 1.0.0
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/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -56,7 +56,7 @@ var getProvideLibs = async () => {
|
|
|
56
56
|
};
|
|
57
57
|
function pluginNodePolyfill() {
|
|
58
58
|
return {
|
|
59
|
-
name: "
|
|
59
|
+
name: "rsbuild:node-polyfill",
|
|
60
60
|
setup(api) {
|
|
61
61
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, isServer, bundler }) => {
|
|
62
62
|
if (isServer) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.40.0_typescript@5.
|
|
1
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.40.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
|
|
@@ -30,7 +30,7 @@ var getProvideLibs = async () => {
|
|
|
30
30
|
};
|
|
31
31
|
function pluginNodePolyfill() {
|
|
32
32
|
return {
|
|
33
|
-
name: "
|
|
33
|
+
name: "rsbuild:node-polyfill",
|
|
34
34
|
setup(api) {
|
|
35
35
|
api.modifyBundlerChain(async (chain, { CHAIN_ID, isServer, bundler }) => {
|
|
36
36
|
if (isServer) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-node-polyfill",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Node polyfill plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"node-libs-browser": "2.2.1",
|
|
26
|
-
"@rsbuild/shared": "0.0
|
|
26
|
+
"@rsbuild/shared": "1.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"typescript": "^5.
|
|
30
|
-
"@rsbuild/core": "0.0
|
|
31
|
-
"@rsbuild/webpack": "0.0
|
|
29
|
+
"typescript": "^5.3.0",
|
|
30
|
+
"@rsbuild/core": "1.0.0",
|
|
31
|
+
"@rsbuild/webpack": "1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public",
|