Skip to content

Commit 8a4b39b

Browse files
committed
chore: use local vendor instead of unpkg for react umd outputs
1 parent 15abef2 commit 8a4b39b

File tree

5 files changed

+33273
-8
lines changed

5 files changed

+33273
-8
lines changed

biome.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"./**/*.tsx",
1010
"./**/*.mjs",
1111
"./**/*.cjs"
12-
]
12+
],
13+
"ignore": ["**/.rslib/*", "./tests/e2e/react-component/public/umd/*"]
1314
},
1415
"vcs": {
1516
"enabled": true,
@@ -21,10 +22,7 @@
2122
"ignoreUnknown": true
2223
},
2324
"formatter": {
24-
"ignore": [
25-
"**/.rslib/*",
26-
"./tests/e2e/react-component/public/umd/index.js"
27-
],
25+
"ignore": ["**/.rslib/*", "./tests/e2e/react-component/public/umd/*"],
2826
"indentStyle": "space"
2927
},
3028
"javascript": {
@@ -47,7 +45,7 @@
4745
"enabled": true,
4846
"ignore": [
4947
"./tests/integration/**/*/src/*",
50-
"./tests/e2e/react-component/public/umd/index.js"
48+
"./tests/e2e/react-component/public/umd/*"
5149
],
5250
"rules": {
5351
"recommended": true,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
public/
1+
public/umd/index.js

tests/e2e/react-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev:bundle-false": "../../node_modules/.bin/rsbuild dev --environment=bundleFalse",
88
"dev:umd": "pnpm umd:build && pnpm umd:copy && ../../node_modules/.bin/rsbuild dev --environment=umd",
99
"umd:build": "cd ../../../examples/react-component-umd && pnpm run build",
10-
"umd:copy": "rm -rf ./public && mkdir -p ./public/umd && cp ../../../examples/react-component-umd/dist/umd/index.js ./public/umd/index.js"
10+
"umd:copy": "rm -rf ./public/umd/index.js && cp ../../../examples/react-component-umd/dist/umd/index.js ./public/umd/index.js"
1111
},
1212
"dependencies": {
1313
"@examples/react-component-bundle": "workspace:*",

0 commit comments

Comments
 (0)