Skip to content

Commit e470fc4

Browse files
author
nyqykk
committed
chore: solve conversation issue
2 parents fc538af + 760968b commit e470fc4

File tree

75 files changed

+1033
-396
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1033
-396
lines changed

.changeset/config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
"linked": [],
66
"access": "restricted",
77
"baseBranch": "main",
8+
"privatePackages": {
9+
"version": false,
10+
"tag": false
11+
},
812
"fixed": [["@rslib/*", "rsbuild-plugin-dts", "create-rslib"]],
913
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
1014
"onlyUpdatePeerDependentsWhenOutOfRange": true,
1115
"updateInternalDependents": "always"
1216
},
13-
"updateInternalDependencies": "patch",
14-
"ignore": []
17+
"updateInternalDependencies": "patch"
1518
}

biome.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"javascript": {
2828
"formatter": {
2929
"quoteStyle": "single"
30-
}
30+
},
31+
"jsxRuntime": "reactClassic"
3132
},
3233
"json": {
3334
"formatter": {

examples/module-federation/mf-host/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"react-dom": "^18.3.1"
1414
},
1515
"devDependencies": {
16-
"@rsbuild/core": "^1.0.1",
17-
"@rsbuild/plugin-react": "^1.0.1",
18-
"@types/react": "^18.3.5",
19-
"@types/react-dom": "^18.3.0",
20-
"typescript": "^5.5.2"
16+
"@rsbuild/core": "^1.0.14",
17+
"@rsbuild/plugin-react": "^1.0.4",
18+
"@types/react": "^18.3.11",
19+
"@types/react-dom": "^18.3.1",
20+
"typescript": "^5.6.3"
2121
}
2222
}

examples/module-federation/mf-react-component/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"serve": "pnpm build && http-server -p 3001 ./dist/ --cors"
1717
},
1818
"dependencies": {
19-
"@module-federation/enhanced": "^0.6.11",
2019
"@module-federation/rsbuild-plugin": "0.0.2"
2120
},
2221
"devDependencies": {
23-
"@rsbuild/plugin-react": "^1.0.3",
22+
"@module-federation/enhanced": "^0.6.11",
23+
"@rsbuild/plugin-react": "^1.0.4",
2424
"@rslib/core": "workspace:*",
2525
"@types/react": "^18.3.11",
2626
"http-server": "^14.1.1",

examples/module-federation/mf-react-component/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { init, loadRemote } from '@module-federation/enhanced/runtime';
22
import { Suspense, createElement, lazy } from 'react';
3-
43
import { CounterButton } from './CounterButton';
54
import { useCounter } from './useCounter';
65

examples/module-federation/mf-remote/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"react-dom": "^18.3.1"
1414
},
1515
"devDependencies": {
16-
"@rsbuild/core": "^1.0.1",
17-
"@rsbuild/plugin-react": "^1.0.1",
18-
"@types/react": "^18.3.5",
19-
"@types/react-dom": "^18.3.0",
20-
"typescript": "^5.5.2"
16+
"@rsbuild/core": "^1.0.14",
17+
"@rsbuild/plugin-react": "^1.0.4",
18+
"@types/react": "^18.3.11",
19+
"@types/react-dom": "^18.3.1",
20+
"typescript": "^5.6.3"
2121
}
2222
}

examples/react-component-bundle-false/rslib.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,12 @@ export default defineConfig({
3535
},
3636
},
3737
],
38-
plugins: [pluginReact(), pluginSass()],
38+
plugins: [
39+
pluginReact({
40+
swcReactOptions: {
41+
runtime: 'classic',
42+
},
43+
}),
44+
pluginSass(),
45+
],
3946
});

examples/react-component-bundle-false/src/components/CounterButton/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import React from 'react';
12
import styles from './index.module.scss';
3+
24
interface CounterButtonProps {
35
onClick: () => void;
46
label: string;

examples/react-component-bundle-false/src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from 'react';
12
import { CounterButton } from './components/CounterButton/index';
23
import { useCounter } from './useCounter';
34
import './index.scss';

examples/react-component-bundle-false/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"esModuleInterop": true,
88
"forceConsistentCasingInFileNames": true,
99
"isolatedModules": true,
10-
"jsx": "react-jsx",
10+
"jsx": "react",
1111
"lib": ["DOM", "ESNext"],
1212
"moduleResolution": "node",
1313
"resolveJsonModule": true,

0 commit comments

Comments
 (0)