create-rsbuild 2.0.0-beta.10 → 2.0.0-beta.11

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.
Files changed (38) hide show
  1. package/dist/index.js +0 -12
  2. package/package.json +10 -11
  3. package/template-lit-js/package.json +1 -1
  4. package/template-lit-ts/package.json +1 -1
  5. package/template-preact-js/package.json +1 -1
  6. package/template-preact-ts/package.json +1 -1
  7. package/template-react-compiler/react-js/rsbuild.config.js +2 -1
  8. package/template-react-compiler/react-ts/rsbuild.config.ts +2 -1
  9. package/template-react-js/package.json +1 -1
  10. package/template-react-ts/package.json +1 -1
  11. package/template-rstest/react-js/package.json +2 -2
  12. package/template-rstest/react-ts/package.json +2 -2
  13. package/template-rstest/vanilla-js/package.json +2 -2
  14. package/template-rstest/vanilla-ts/package.json +2 -2
  15. package/template-rstest/vue-js/package.json +2 -2
  16. package/template-rstest/vue-ts/package.json +2 -2
  17. package/template-solid-js/package.json +2 -2
  18. package/template-solid-ts/package.json +2 -2
  19. package/template-svelte-js/package.json +2 -2
  20. package/template-svelte-ts/package.json +2 -2
  21. package/template-vanilla-js/package.json +1 -1
  22. package/template-vanilla-ts/package.json +1 -1
  23. package/template-vue2-js/package.json +1 -1
  24. package/template-vue2-ts/package.json +1 -1
  25. package/template-vue3-js/package.json +2 -2
  26. package/template-vue3-ts/package.json +2 -2
  27. package/template-react18-js/package.json +0 -19
  28. package/template-react18-js/rsbuild.config.js +0 -8
  29. package/template-react18-js/src/App.css +0 -26
  30. package/template-react18-js/src/App.jsx +0 -12
  31. package/template-react18-js/src/index.jsx +0 -10
  32. package/template-react18-ts/package.json +0 -22
  33. package/template-react18-ts/rsbuild.config.ts +0 -7
  34. package/template-react18-ts/src/App.css +0 -26
  35. package/template-react18-ts/src/App.tsx +0 -12
  36. package/template-react18-ts/src/env.d.ts +0 -11
  37. package/template-react18-ts/src/index.tsx +0 -13
  38. package/template-react18-ts/tsconfig.json +0 -22
package/dist/index.js CHANGED
@@ -23,10 +23,6 @@ async function getTemplateName({ template }) {
23
23
  value: 'react',
24
24
  label: 'React 19'
25
25
  },
26
- {
27
- value: 'react18',
28
- label: 'React 18'
29
- },
30
26
  {
31
27
  value: 'vue3',
32
28
  label: 'Vue 3'
@@ -81,10 +77,6 @@ function mapESLintTemplate(templateName) {
81
77
  case 'vue2-ts':
82
78
  case 'vue3-ts':
83
79
  return 'vue-ts';
84
- case 'react18-js':
85
- return 'react-js';
86
- case 'react18-ts':
87
- return 'react-ts';
88
80
  default:
89
81
  return `vanilla-${templateName.split('-')[1]}`;
90
82
  }
@@ -92,10 +84,8 @@ function mapESLintTemplate(templateName) {
92
84
  function mapRstestTemplate(templateName) {
93
85
  switch(templateName){
94
86
  case 'react-js':
95
- case 'react18-js':
96
87
  return 'react-js';
97
88
  case 'react-ts':
98
- case 'react18-ts':
99
89
  return 'react-ts';
100
90
  case 'vue3-js':
101
91
  return 'vue-js';
@@ -114,8 +104,6 @@ create({
114
104
  'vanilla-ts',
115
105
  'react-js',
116
106
  'react-ts',
117
- 'react18-js',
118
- 'react18-ts',
119
107
  'vue3-js',
120
108
  'vue3-ts',
121
109
  'vue2-js',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "2.0.0-beta.10",
3
+ "version": "2.0.0-beta.11",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "repository": {
@@ -22,19 +22,19 @@
22
22
  "bin.js"
23
23
  ],
24
24
  "dependencies": {
25
- "create-rstack": "1.8.1"
25
+ "create-rstack": "1.8.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@rsbuild/plugin-react": "^1.1.0",
29
- "@rslib/core": "0.20.0",
29
+ "@rslib/core": "0.20.1",
30
30
  "@types/node": "^24.12.0",
31
31
  "typescript": "^6.0.2",
32
- "@rsbuild/core": "2.0.0-beta.10",
33
- "@rsbuild/plugin-solid": "1.1.1",
34
32
  "@rsbuild/plugin-babel": "1.1.2",
35
- "@rsbuild/plugin-preact": "1.7.2",
33
+ "@rsbuild/core": "2.0.0-beta.11",
34
+ "@rsbuild/plugin-solid": "1.1.1",
35
+ "@rsbuild/plugin-svelte": "1.1.1",
36
36
  "@rsbuild/plugin-vue": "1.2.7",
37
- "@rsbuild/plugin-svelte": "1.1.1"
37
+ "@rsbuild/plugin-preact": "1.7.2"
38
38
  },
39
39
  "engines": {
40
40
  "node": "^20.19.0 || >=22.12.0"
@@ -44,9 +44,8 @@
44
44
  "registry": "https://registry.npmjs.org/"
45
45
  },
46
46
  "scripts": {
47
- "build": "rslib build --syntax es2023",
48
- "dev": "rslib build --syntax es2023 -w",
49
- "start": "node ./dist/index.js",
50
- "bump": "pnpx bumpp --no-tag"
47
+ "build": "rslib --syntax es2023",
48
+ "dev": "rslib --syntax es2023 -w",
49
+ "start": "node ./dist/index.js"
51
50
  }
52
51
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
@@ -8,7 +8,8 @@ export default defineConfig({
8
8
  plugins: [
9
9
  pluginReact(),
10
10
  pluginBabel({
11
- include: /\.(?:jsx|tsx)$/,
11
+ include: /\.[jt]sx?$/,
12
+ exclude: [/[\\/]node_modules[\\/]/],
12
13
  babelLoaderOptions(opts) {
13
14
  opts.plugins?.unshift('babel-plugin-react-compiler');
14
15
  },
@@ -7,7 +7,8 @@ export default defineConfig({
7
7
  plugins: [
8
8
  pluginReact(),
9
9
  pluginBabel({
10
- include: /\.(?:jsx|tsx)$/,
10
+ include: /\.[jt]sx?$/,
11
+ exclude: [/[\\/]node_modules[\\/]/],
11
12
  babelLoaderOptions(opts) {
12
13
  opts.plugins?.unshift('babel-plugin-react-compiler');
13
14
  },
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
@@ -7,8 +7,8 @@
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
9
  "@testing-library/react": "^16.3.2",
10
- "@rstest/core": "^0.9.4",
10
+ "@rstest/core": "^0.9.5",
11
11
  "@rstest/adapter-rsbuild": "^0.2.4",
12
- "happy-dom": "^20.8.4"
12
+ "happy-dom": "^20.8.9"
13
13
  }
14
14
  }
@@ -7,8 +7,8 @@
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
9
  "@testing-library/react": "^16.3.2",
10
- "@rstest/core": "^0.9.4",
10
+ "@rstest/core": "^0.9.5",
11
11
  "@rstest/adapter-rsbuild": "^0.2.4",
12
- "happy-dom": "^20.8.4"
12
+ "happy-dom": "^20.8.9"
13
13
  }
14
14
  }
@@ -6,8 +6,8 @@
6
6
  "devDependencies": {
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
- "@rstest/core": "^0.9.4",
9
+ "@rstest/core": "^0.9.5",
10
10
  "@rstest/adapter-rsbuild": "^0.2.4",
11
- "happy-dom": "^20.8.4"
11
+ "happy-dom": "^20.8.9"
12
12
  }
13
13
  }
@@ -6,8 +6,8 @@
6
6
  "devDependencies": {
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
- "@rstest/core": "^0.9.4",
9
+ "@rstest/core": "^0.9.5",
10
10
  "@rstest/adapter-rsbuild": "^0.2.4",
11
- "happy-dom": "^20.8.4"
11
+ "happy-dom": "^20.8.9"
12
12
  }
13
13
  }
@@ -7,8 +7,8 @@
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
9
  "@testing-library/vue": "^8.1.0",
10
- "@rstest/core": "^0.9.4",
10
+ "@rstest/core": "^0.9.5",
11
11
  "@rstest/adapter-rsbuild": "^0.2.4",
12
- "happy-dom": "^20.8.4"
12
+ "happy-dom": "^20.8.9"
13
13
  }
14
14
  }
@@ -7,8 +7,8 @@
7
7
  "@testing-library/dom": "^10.4.1",
8
8
  "@testing-library/jest-dom": "^6.9.1",
9
9
  "@testing-library/vue": "^8.1.0",
10
- "@rstest/core": "^0.9.4",
10
+ "@rstest/core": "^0.9.5",
11
11
  "@rstest/adapter-rsbuild": "^0.2.4",
12
- "happy-dom": "^20.8.4"
12
+ "happy-dom": "^20.8.9"
13
13
  }
14
14
  }
@@ -5,11 +5,11 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "solid-js": "^1.9.11"
12
+ "solid-js": "^1.9.12"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@rsbuild/core": "^2.0.0-beta.7",
@@ -5,11 +5,11 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "solid-js": "^1.9.11"
12
+ "solid-js": "^1.9.12"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@rsbuild/core": "^2.0.0-beta.7",
@@ -5,11 +5,11 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "svelte": "^5.54.1"
12
+ "svelte": "^5.55.1"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@rsbuild/core": "^2.0.0-beta.7",
@@ -5,12 +5,12 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview",
10
10
  "svelte-check": "svelte-check --tsconfig ./tsconfig.json"
11
11
  },
12
12
  "dependencies": {
13
- "svelte": "^5.54.1"
13
+ "svelte": "^5.55.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@rsbuild/core": "^2.0.0-beta.7",
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "devDependencies": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "devDependencies": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
@@ -5,11 +5,11 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "vue": "^3.5.30"
12
+ "vue": "^3.5.31"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@rsbuild/core": "^2.0.0-beta.7",
@@ -5,11 +5,11 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
8
+ "dev": "rsbuild --open",
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "dependencies": {
12
- "vue": "^3.5.30"
12
+ "vue": "^3.5.31"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@rsbuild/core": "^2.0.0-beta.7",
@@ -1,19 +0,0 @@
1
- {
2
- "name": "rsbuild-react18-js",
3
- "version": "1.0.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
9
- "preview": "rsbuild preview"
10
- },
11
- "dependencies": {
12
- "react": "^18.3.1",
13
- "react-dom": "^18.3.1"
14
- },
15
- "devDependencies": {
16
- "@rsbuild/core": "^2.0.0-beta.7",
17
- "@rsbuild/plugin-react": "^1.4.6"
18
- }
19
- }
@@ -1,8 +0,0 @@
1
- // @ts-check
2
- import { defineConfig } from '@rsbuild/core';
3
- import { pluginReact } from '@rsbuild/plugin-react';
4
-
5
- // Docs: https://rsbuild.rs/config/
6
- export default defineConfig({
7
- plugins: [pluginReact()],
8
- });
@@ -1,26 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
1
- import './App.css';
2
-
3
- const App = () => {
4
- return (
5
- <div className="content">
6
- <h1>Rsbuild with React</h1>
7
- <p>Start building amazing things with Rsbuild.</p>
8
- </div>
9
- );
10
- };
11
-
12
- export default App;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom/client';
3
- import App from './App';
4
-
5
- const root = ReactDOM.createRoot(document.getElementById('root'));
6
- root.render(
7
- <React.StrictMode>
8
- <App />
9
- </React.StrictMode>,
10
- );
@@ -1,22 +0,0 @@
1
- {
2
- "name": "rsbuild-react18-ts",
3
- "version": "1.0.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "build": "rsbuild build",
8
- "dev": "rsbuild dev --open",
9
- "preview": "rsbuild preview"
10
- },
11
- "dependencies": {
12
- "react": "^18.3.1",
13
- "react-dom": "^18.3.1"
14
- },
15
- "devDependencies": {
16
- "@rsbuild/core": "^2.0.0-beta.7",
17
- "@rsbuild/plugin-react": "^1.4.6",
18
- "@types/react": "^18.3.18",
19
- "@types/react-dom": "^18.3.5",
20
- "typescript": "^6.0.2"
21
- }
22
- }
@@ -1,7 +0,0 @@
1
- import { defineConfig } from '@rsbuild/core';
2
- import { pluginReact } from '@rsbuild/plugin-react';
3
-
4
- // Docs: https://rsbuild.rs/config/
5
- export default defineConfig({
6
- plugins: [pluginReact()],
7
- });
@@ -1,26 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
1
- import './App.css';
2
-
3
- const App = () => {
4
- return (
5
- <div className="content">
6
- <h1>Rsbuild with React</h1>
7
- <p>Start building amazing things with Rsbuild.</p>
8
- </div>
9
- );
10
- };
11
-
12
- export default App;
@@ -1,11 +0,0 @@
1
- /// <reference types="@rsbuild/core/types" />
2
-
3
- /**
4
- * Imports the SVG file as a React component.
5
- * @requires [@rsbuild/plugin-svgr](https://npmjs.com/package/@rsbuild/plugin-svgr)
6
- */
7
- declare module '*.svg?react' {
8
- import type React from 'react';
9
- const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
10
- export default ReactComponent;
11
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom/client';
3
- import App from './App';
4
-
5
- const rootEl = document.getElementById('root');
6
- if (rootEl) {
7
- const root = ReactDOM.createRoot(rootEl);
8
- root.render(
9
- <React.StrictMode>
10
- <App />
11
- </React.StrictMode>,
12
- );
13
- }
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["DOM", "ES2020"],
4
- "jsx": "react-jsx",
5
- "target": "ES2020",
6
- "noEmit": true,
7
- "skipLibCheck": true,
8
- "useDefineForClassFields": true,
9
-
10
- /* modules */
11
- "moduleDetection": "force",
12
- "moduleResolution": "bundler",
13
- "verbatimModuleSyntax": true,
14
- "resolveJsonModule": true,
15
- "allowImportingTsExtensions": true,
16
-
17
- /* type checking */
18
- "noUnusedLocals": true,
19
- "noUnusedParameters": true
20
- },
21
- "include": ["src"]
22
- }