Skip to content

Commit 95ce815

Browse files
committed
Merge branch 'main' into feat_runtime_error_overlay
2 parents 075c2bb + 439a11d commit 95ce815

File tree

451 files changed

+7820
-10067
lines changed

Some content is hidden

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

451 files changed

+7820
-10067
lines changed

.github/workflows/test-ubuntu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
changed:
4343
- "!**/*.md"
4444
- "!**/*.mdx"
45+
- "!**/_meta.json"
46+
- "!**/dictionary.txt"
4547
4648
- name: Setup Node.js ${{ matrix.node-version }}
4749
if: steps.changes.outputs.changed == 'true'
@@ -83,6 +85,8 @@ jobs:
8385
changed:
8486
- "!**/*.md"
8587
- "!**/*.mdx"
88+
- "!**/_meta.json"
89+
- "!**/dictionary.txt"
8690
8791
- name: Setup Node.js ${{ matrix.node-version }}
8892
if: steps.changes.outputs.changed == 'true'

.github/workflows/test-windows.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
changed:
4747
- "!**/*.md"
4848
- "!**/*.mdx"
49+
- "!**/_meta.json"
50+
- "!**/dictionary.txt"
4951
5052
- name: Setup Node.js ${{ matrix.node-version }}
5153
if: steps.changes.outputs.changed == 'true'
@@ -92,6 +94,8 @@ jobs:
9294
changed:
9395
- "!**/*.md"
9496
- "!**/*.mdx"
97+
- "!**/_meta.json"
98+
- "!**/dictionary.txt"
9599
96100
- name: Setup Node.js ${{ matrix.node-version }}
97101
if: steps.changes.outputs.changed == 'true'

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"search.exclude": {
44
"**/.git": true,
55
"**/dist": true,
6+
"**/dist-types": true,
67
"**/coverage": true,
78
"**/compiled": true,
89
"**/doc_build": true,

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ To get started with Rsbuild, see the [Quick Start](https://rsbuild.dev/guide/sta
9494
- [Modern.js](https://github.com/web-infra-dev/modern.js): A progressive React framework based on Rsbuild.
9595
- [awesome-rspack](https://github.com/web-infra-dev/awesome-rspack): A curated list of awesome things related to Rspack and Rsbuild.
9696
- [rspack-examples](https://github.com/rspack-contrib/rspack-examples): Examples for Rspack, Rsbuild, Rspress and Rsdoctor.
97+
- [storybook-rsbuild](https://github.com/rspack-contrib/storybook-rsbuild): Storybook builder powered by Rsbuild.
9798
- [rsbuild-plugin-template](https://github.com/rspack-contrib/rsbuild-plugin-template):Use this template to create your own Rsbuild plugin.
9899
- [rsfamily-design-resources](https://github.com/rspack-contrib/rsfamily-design-resources):Design resources for Rspack, Rsbuild, Rspress and Rsdoctor.
99100

README.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Rsbuild 具备以下特性:
9494
- [Modern.js](https://github.com/web-infra-dev/modern.js):基于 Rsbuild 的渐进式 React 框架。
9595
- [awesome-rspack](https://github.com/web-infra-dev/awesome-rspack):与 Rspack 和 Rsbuild 相关的精彩内容列表。
9696
- [rspack-examples](https://github.com/rspack-contrib/rspack-examples):Rspack、Rsbuild、Rspress 和 Rsdoctor 的示例项目。
97+
- [storybook-rsbuild](https://github.com/rspack-contrib/storybook-rsbuild): 基于 Rsbuild 构建的 Storybook。
9798
- [rsbuild-plugin-template](https://github.com/rspack-contrib/rsbuild-plugin-template):使用此模板创建你的 Rsbuild 插件。
9899
- [rsfamily-design-resources](https://github.com/rspack-contrib/rsfamily-design-resources):Rspack、Rsbuild、Rspress 和 Rsdoctor 的设计资源。
99100

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { build, rspackOnlyTest } from '@e2e/helper';
2+
import { expect } from '@playwright/test';
3+
4+
rspackOnlyTest(
5+
'should run babel with @rsbuild/babel-preset/node correctly',
6+
async () => {
7+
await build({
8+
cwd: __dirname,
9+
runServer: true,
10+
});
11+
12+
const { foo } = await import('./dist/server/index.js');
13+
expect(foo).toEqual(1);
14+
},
15+
);

e2e/cases/babel/preset/rsbuild.config.ts renamed to e2e/cases/babel/preset-node/rsbuild.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { pluginBabel } from '@rsbuild/plugin-babel';
22

33
export default {
4+
output: {
5+
targets: ['node'],
6+
},
47
plugins: [
58
pluginBabel({
69
babelLoaderOptions: (_, { addPresets }) => {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
console.log('hello');
2+
3+
export const foo = 1;

e2e/cases/babel/preset/index.test.ts renamed to e2e/cases/babel/preset-web/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { build, gotoPage, rspackOnlyTest } from '@e2e/helper';
22
import { expect } from '@playwright/test';
33

44
rspackOnlyTest(
5-
'should run babel with @rsbuild/babel-preset correctly',
5+
'should run babel with @rsbuild/babel-preset/web correctly',
66
async ({ page }) => {
77
const rsbuild = await build({
88
cwd: __dirname,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { pluginBabel } from '@rsbuild/plugin-babel';
2+
3+
export default {
4+
plugins: [
5+
pluginBabel({
6+
babelLoaderOptions: (_, { addPresets }) => {
7+
addPresets([require.resolve('@rsbuild/babel-preset/node')]);
8+
},
9+
}),
10+
],
11+
};

0 commit comments

Comments
 (0)