create-rsbuild 1.0.0 → 1.0.1-beta.1
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 +1 -1
- package/dist/index.js +1546 -67
- package/package.json +15 -6
- package/template-biome/biome.json +25 -0
- package/template-biome/package.json +12 -0
- package/template-eslint/common-js/eslint.config.mjs +8 -0
- package/template-eslint/common-js/package.json +13 -0
- package/template-eslint/common-ts/eslint.config.mjs +10 -0
- package/template-eslint/common-ts/package.json +14 -0
- package/template-eslint/react-js/eslint.config.mjs +29 -0
- package/template-eslint/react-js/package.json +16 -0
- package/template-eslint/react-ts/eslint.config.mjs +31 -0
- package/template-eslint/react-ts/package.json +17 -0
- package/template-eslint/svelte-js/eslint.config.mjs +20 -0
- package/template-eslint/svelte-js/package.json +14 -0
- package/template-eslint/svelte-ts/eslint.config.mjs +28 -0
- package/template-eslint/svelte-ts/package.json +16 -0
- package/template-eslint/vue-js/eslint.config.mjs +10 -0
- package/template-eslint/vue-js/package.json +14 -0
- package/template-eslint/vue-ts/eslint.config.mjs +12 -0
- package/template-eslint/vue-ts/package.json +15 -0
- package/template-lit-js/package.json +4 -2
- package/template-lit-ts/package.json +4 -2
- package/template-lit-ts/tsconfig.json +4 -1
- package/template-preact-js/package.json +17 -0
- package/template-preact-js/rsbuild.config.mjs +6 -0
- package/template-preact-js/src/App.css +26 -0
- package/template-preact-js/src/App.jsx +12 -0
- package/template-preact-js/src/index.jsx +4 -0
- package/template-preact-ts/package.json +18 -0
- package/template-preact-ts/rsbuild.config.ts +6 -0
- package/template-preact-ts/src/App.css +26 -0
- package/template-preact-ts/src/App.tsx +12 -0
- package/template-preact-ts/src/index.tsx +7 -0
- package/template-preact-ts/tsconfig.json +22 -0
- package/template-prettier/.prettierignore +4 -0
- package/template-prettier/.prettierrc +3 -0
- package/template-prettier/package.json +11 -0
- package/template-react-js/package.json +2 -2
- package/template-react-ts/package.json +5 -5
- package/template-react-ts/src/index.tsx +9 -6
- package/template-react-ts/tsconfig.json +4 -1
- package/template-solid-js/package.json +1 -1
- package/template-solid-js/rsbuild.config.mjs +6 -1
- package/template-solid-js/src/index.jsx +1 -1
- package/template-solid-ts/package.json +2 -2
- package/template-solid-ts/rsbuild.config.ts +6 -1
- package/template-solid-ts/src/index.tsx +4 -1
- package/template-solid-ts/tsconfig.json +4 -1
- package/template-svelte-js/package.json +1 -1
- package/template-svelte-js/src/index.js +1 -4
- package/template-svelte-ts/package.json +5 -3
- package/template-svelte-ts/src/index.ts +1 -4
- package/template-svelte-ts/tsconfig.json +7 -1
- package/template-vanilla-ts/package.json +1 -1
- package/template-vanilla-ts/tsconfig.json +4 -1
- package/template-vue2-js/src/index.js +1 -1
- package/template-vue2-ts/package.json +1 -1
- package/template-vue2-ts/src/index.ts +1 -1
- package/template-vue2-ts/tsconfig.json +5 -1
- package/template-vue3-js/.vscode/extensions.json +3 -0
- package/template-vue3-js/package.json +1 -1
- package/template-vue3-js/src/index.js +1 -1
- package/template-vue3-ts/.vscode/extensions.json +3 -0
- package/template-vue3-ts/package.json +2 -2
- package/template-vue3-ts/src/env.d.ts +1 -0
- package/template-vue3-ts/src/index.ts +1 -1
- package/template-vue3-ts/tsconfig.json +6 -1
- package/CHANGELOG.md +0 -86
- package/dist/index.d.ts +0 -2
- package/modern.config.ts +0 -3
- package/tsconfig.json +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rsbuild",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-beta.1",
|
|
4
4
|
"description": "Create a new Rsbuild project",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"directory": "packages/create-rsbuild"
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
|
+
"type": "module",
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
14
15
|
"types": "./dist/index.d.ts",
|
|
@@ -20,13 +21,21 @@
|
|
|
20
21
|
"bin": {
|
|
21
22
|
"create-rsbuild": "./dist/index.js"
|
|
22
23
|
},
|
|
23
|
-
"
|
|
24
|
+
"files": [
|
|
25
|
+
"template-*",
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"devDependencies": {
|
|
24
29
|
"@clack/prompts": "^0.7.0",
|
|
25
|
-
"
|
|
30
|
+
"@types/minimist": "^1.2.5",
|
|
31
|
+
"@types/node": "18.x",
|
|
32
|
+
"deepmerge": "^4.3.1",
|
|
33
|
+
"minimist": "^1.2.8",
|
|
34
|
+
"rslog": "^1.2.2",
|
|
35
|
+
"typescript": "^5.5.2"
|
|
26
36
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"typescript": "^5.3.0"
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=16.7.0"
|
|
30
39
|
},
|
|
31
40
|
"publishConfig": {
|
|
32
41
|
"access": "public",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
|
|
3
|
+
"organizeImports": {
|
|
4
|
+
"enabled": true
|
|
5
|
+
},
|
|
6
|
+
"vcs": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"clientKind": "git",
|
|
9
|
+
"useIgnoreFile": true
|
|
10
|
+
},
|
|
11
|
+
"formatter": {
|
|
12
|
+
"indentStyle": "space"
|
|
13
|
+
},
|
|
14
|
+
"javascript": {
|
|
15
|
+
"formatter": {
|
|
16
|
+
"quoteStyle": "single"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"linter": {
|
|
20
|
+
"enabled": true,
|
|
21
|
+
"rules": {
|
|
22
|
+
"recommended": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-common-ts",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/js": "^9.6.0",
|
|
10
|
+
"eslint": "^9.6.0",
|
|
11
|
+
"globals": "^15.8.0",
|
|
12
|
+
"typescript-eslint": "^7.16.0"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
|
|
2
|
+
import js from '@eslint/js';
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
|
+
import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js';
|
|
5
|
+
import react from 'eslint-plugin-react/configs/recommended.js';
|
|
6
|
+
import globals from 'globals';
|
|
7
|
+
|
|
8
|
+
export default [
|
|
9
|
+
{ languageOptions: { globals: globals.browser } },
|
|
10
|
+
js.configs.recommended,
|
|
11
|
+
...fixupConfigRules([
|
|
12
|
+
{
|
|
13
|
+
...react,
|
|
14
|
+
settings: {
|
|
15
|
+
react: { version: 'detect' },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
reactJsx,
|
|
19
|
+
]),
|
|
20
|
+
{
|
|
21
|
+
plugins: {
|
|
22
|
+
'react-hooks': fixupPluginRules(reactHooks),
|
|
23
|
+
},
|
|
24
|
+
rules: {
|
|
25
|
+
...reactHooks.configs.recommended.rules,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{ ignores: ['dist/'] },
|
|
29
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-react-js",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/compat": "^1.1.0",
|
|
10
|
+
"@eslint/js": "^9.6.0",
|
|
11
|
+
"eslint": "^9.6.0",
|
|
12
|
+
"eslint-plugin-react": "^7.34.3",
|
|
13
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
14
|
+
"globals": "^15.8.0"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
|
|
2
|
+
import js from '@eslint/js';
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
|
+
import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js';
|
|
5
|
+
import react from 'eslint-plugin-react/configs/recommended.js';
|
|
6
|
+
import globals from 'globals';
|
|
7
|
+
import ts from 'typescript-eslint';
|
|
8
|
+
|
|
9
|
+
export default [
|
|
10
|
+
{ languageOptions: { globals: globals.browser } },
|
|
11
|
+
js.configs.recommended,
|
|
12
|
+
...ts.configs.recommended,
|
|
13
|
+
...fixupConfigRules([
|
|
14
|
+
{
|
|
15
|
+
...react,
|
|
16
|
+
settings: {
|
|
17
|
+
react: { version: 'detect' },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
reactJsx,
|
|
21
|
+
]),
|
|
22
|
+
{
|
|
23
|
+
plugins: {
|
|
24
|
+
'react-hooks': fixupPluginRules(reactHooks),
|
|
25
|
+
},
|
|
26
|
+
rules: {
|
|
27
|
+
...reactHooks.configs.recommended.rules,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{ ignores: ['dist/'] },
|
|
31
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-react-ts",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/compat": "^1.1.0",
|
|
10
|
+
"@eslint/js": "^9.6.0",
|
|
11
|
+
"eslint": "^9.6.0",
|
|
12
|
+
"eslint-plugin-react": "^7.34.3",
|
|
13
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
14
|
+
"globals": "^15.8.0",
|
|
15
|
+
"typescript-eslint": "^7.16.0"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import svelte from 'eslint-plugin-svelte';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
|
|
5
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
6
|
+
export default [
|
|
7
|
+
js.configs.recommended,
|
|
8
|
+
...svelte.configs['flat/recommended'],
|
|
9
|
+
{
|
|
10
|
+
languageOptions: {
|
|
11
|
+
globals: {
|
|
12
|
+
...globals.browser,
|
|
13
|
+
...globals.node,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
ignores: ['dist/'],
|
|
19
|
+
},
|
|
20
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-svelte-js",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/js": "^9.6.0",
|
|
10
|
+
"eslint": "^9.6.0",
|
|
11
|
+
"eslint-plugin-svelte": "^2.42.0",
|
|
12
|
+
"globals": "^15.8.0"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import svelte from 'eslint-plugin-svelte';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import ts from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
7
|
+
export default [
|
|
8
|
+
js.configs.recommended,
|
|
9
|
+
...ts.configs.recommended,
|
|
10
|
+
...svelte.configs['flat/recommended'],
|
|
11
|
+
{
|
|
12
|
+
languageOptions: {
|
|
13
|
+
globals: {
|
|
14
|
+
...globals.browser,
|
|
15
|
+
...globals.node,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
files: ['**/*.svelte'],
|
|
21
|
+
languageOptions: {
|
|
22
|
+
parserOptions: {
|
|
23
|
+
parser: ts.parser,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{ ignores: ['dist/'] },
|
|
28
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-svelte-ts",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/js": "^9.6.0",
|
|
10
|
+
"eslint": "^9.6.0",
|
|
11
|
+
"eslint-plugin-svelte": "^2.42.0",
|
|
12
|
+
"globals": "^15.8.0",
|
|
13
|
+
"typescript-eslint": "^8.0.0-alpha.39"
|
|
14
|
+
},
|
|
15
|
+
"type": "module"
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import vue from 'eslint-plugin-vue';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
{ languageOptions: { globals: globals.browser } },
|
|
7
|
+
js.configs.recommended,
|
|
8
|
+
...vue.configs['flat/essential'],
|
|
9
|
+
{ ignores: ['dist/'] },
|
|
10
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-vue-js",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/js": "^9.6.0",
|
|
10
|
+
"eslint": "^9.6.0",
|
|
11
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
12
|
+
"globals": "^15.8.0"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import vue from 'eslint-plugin-vue';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import ts from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
{ languageOptions: { globals: globals.browser } },
|
|
8
|
+
js.configs.recommended,
|
|
9
|
+
...ts.configs.recommended,
|
|
10
|
+
...vue.configs['flat/essential'],
|
|
11
|
+
{ ignores: ['dist/'] },
|
|
12
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-vue-ts",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/js": "^9.6.0",
|
|
10
|
+
"eslint": "^9.6.0",
|
|
11
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
12
|
+
"globals": "^15.8.0",
|
|
13
|
+
"typescript-eslint": "^7.16.0"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
"target": "ES2020",
|
|
4
4
|
"lib": ["DOM", "ES2020"],
|
|
5
5
|
"module": "ESNext",
|
|
6
|
+
"noEmit": true,
|
|
6
7
|
"strict": true,
|
|
7
8
|
"skipLibCheck": true,
|
|
8
9
|
"isolatedModules": true,
|
|
9
10
|
"resolveJsonModule": true,
|
|
10
|
-
"moduleResolution": "bundler"
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"useDefineForClassFields": true,
|
|
13
|
+
"allowImportingTsExtensions": true
|
|
11
14
|
},
|
|
12
15
|
"include": ["src"]
|
|
13
16
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-preact-js",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "rsbuild dev --open",
|
|
7
|
+
"build": "rsbuild build",
|
|
8
|
+
"preview": "rsbuild preview"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"preact": "^10.22.1"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@rsbuild/core": "workspace:*",
|
|
15
|
+
"@rsbuild/plugin-preact": "workspace:*"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
color: #fff;
|
|
4
|
+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
5
|
+
background-image: linear-gradient(to bottom, #020917, #101725);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.content {
|
|
9
|
+
display: flex;
|
|
10
|
+
min-height: 100vh;
|
|
11
|
+
line-height: 1.1;
|
|
12
|
+
text-align: center;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.content h1 {
|
|
18
|
+
font-size: 3.6rem;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.content p {
|
|
23
|
+
font-size: 1.2rem;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
opacity: 0.5;
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-preact-ts",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "rsbuild dev --open",
|
|
7
|
+
"build": "rsbuild build",
|
|
8
|
+
"preview": "rsbuild preview"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"preact": "^10.22.1"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@rsbuild/core": "workspace:*",
|
|
15
|
+
"@rsbuild/plugin-preact": "workspace:*",
|
|
16
|
+
"typescript": "^5.5.2"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
color: #fff;
|
|
4
|
+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
5
|
+
background-image: linear-gradient(to bottom, #020917, #101725);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.content {
|
|
9
|
+
display: flex;
|
|
10
|
+
min-height: 100vh;
|
|
11
|
+
line-height: 1.1;
|
|
12
|
+
text-align: center;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.content h1 {
|
|
18
|
+
font-size: 3.6rem;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.content p {
|
|
23
|
+
font-size: 1.2rem;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
opacity: 0.5;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"lib": ["DOM", "ES2020"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"jsxImportSource": "preact",
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"moduleResolution": "bundler",
|
|
14
|
+
"useDefineForClassFields": true,
|
|
15
|
+
"allowImportingTsExtensions": true,
|
|
16
|
+
"paths": {
|
|
17
|
+
"react": ["./node_modules/preact/compat/"],
|
|
18
|
+
"react-dom": ["./node_modules/preact/compat/"]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"include": ["src"]
|
|
22
|
+
}
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"preview": "rsbuild preview"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"react": "^18.
|
|
12
|
-
"react-dom": "^18.
|
|
11
|
+
"react": "^18.3.1",
|
|
12
|
+
"react-dom": "^18.3.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@rsbuild/core": "workspace:*",
|
|
16
16
|
"@rsbuild/plugin-react": "workspace:*",
|
|
17
|
-
"@types/react": "^18",
|
|
18
|
-
"@types/react-dom": "^18",
|
|
19
|
-
"typescript": "^5.
|
|
17
|
+
"@types/react": "^18.3.3",
|
|
18
|
+
"@types/react-dom": "^18.3.0",
|
|
19
|
+
"typescript": "^5.5.2"
|
|
20
20
|
}
|
|
21
21
|
}
|