Skip to content

Commit c85a188

Browse files
authored
chore: bump rsbuild 1.0.3 (#201)
1 parent 1c9f54b commit c85a188

File tree

13 files changed

+93
-88
lines changed

13 files changed

+93
-88
lines changed

.changeset/silent-cobras-sing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rslib/core': patch
3+
---
4+
5+
release

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,4 @@ The project is still in its early stages and under active development, so it pos
140140

141141
| Package | Link |
142142
| ------------ | -------------------------------------------------------------------- |
143-
| @rspack/core | [1.0.3](https://github.com/web-infra-dev/rspack/releases/tag/v1.0.3) |
143+
| @rspack/core | [1.0.5](https://github.com/web-infra-dev/rspack/releases/tag/v1.0.5) |

e2e/cases/auto-external/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('auto external default should works', async () => {
1313
);
1414

1515
expect(js!.entries.cjs).toContain(
16-
'var external_react_namespaceObject = require("react");',
16+
'const external_react_namespaceObject = require("react");',
1717
);
1818

1919
// dts should externalized
@@ -33,10 +33,10 @@ test('auto external sub path should works', async () => {
3333
);
3434

3535
expect(entries.cjs).toContain(
36-
'var external_react_namespaceObject = require("react");',
36+
'const external_react_namespaceObject = require("react");',
3737
);
3838
expect(entries.cjs).toContain(
39-
'var jsx_runtime_namespaceObject = require("react/jsx-runtime");',
39+
'const jsx_runtime_namespaceObject = require("react/jsx-runtime");',
4040
);
4141
});
4242

@@ -66,7 +66,7 @@ test('externals should overrides auto external', async () => {
6666
);
6767

6868
expect(entries.cjs).toContain(
69-
'var external_react1_namespaceObject = require("react1");',
69+
'const external_react1_namespaceObject = require("react1");',
7070
);
7171
});
7272

e2e/cases/bundle-false/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ test('auto add extension for relative import', async () => {
5454
}
5555

5656
for (const requirer of [
57-
'var external_bar_cjs_namespaceObject = require("./bar.cjs");',
58-
'var external_baz_cjs_namespaceObject = require("./baz.cjs");',
59-
'var external_foo_cjs_namespaceObject = require("./foo.cjs");',
60-
'var external_qux_cjs_namespaceObject = require("./qux.cjs");',
57+
'const external_bar_cjs_namespaceObject = require("./bar.cjs");',
58+
'const external_baz_cjs_namespaceObject = require("./baz.cjs");',
59+
'const external_foo_cjs_namespaceObject = require("./foo.cjs");',
60+
'const external_qux_cjs_namespaceObject = require("./qux.cjs");',
6161
]) {
6262
expect(Object.values(contents.cjs)[3]).toContain(requirer);
6363
}

e2e/cases/externals/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ test('auto externalize Node.js built-in modules when `output.target` is "node"',
2525
}
2626

2727
for (const external of [
28-
'var external_fs_namespaceObject = require("fs");',
29-
'var external_node_assert_namespaceObject = require("node:assert");',
30-
'var external_react_namespaceObject = require("react");',
28+
'const external_fs_namespaceObject = require("fs");',
29+
'const external_node_assert_namespaceObject = require("node:assert");',
30+
'const external_react_namespaceObject = require("react");',
3131
'module.exports = require("bar");',
3232
'module.exports = require("foo");',
3333
]) {

e2e/cases/resolve/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test('resolve node protocol', async () => {
3131
expect(isSuccess).toBeTruthy();
3232
expect(entries.esm).toMatchInlineSnapshot(`
3333
"import * as __WEBPACK_EXTERNAL_MODULE_node_path__ from "node:path";
34-
var external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
34+
const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
3535
const { join } = external_node_path_namespaceObject["default"];
3636
export { join };
3737
"

e2e/cases/transform-import/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('transformImport with arco-design', async () => {
1111
expect(Object.values(contents[format]!)[0]).toContain(
1212
format.startsWith('esm')
1313
? 'import * as __WEBPACK_EXTERNAL_MODULE__arco_design_web_react_es_button__ from "@arco-design/web-react/es/button"'
14-
: 'var button_namespaceObject = require("@arco-design/web-react/es/button")',
14+
: 'const button_namespaceObject = require("@arco-design/web-react/es/button")',
1515
);
1616
expect(Object.values(contents[format]!)[0]).toContain(
1717
format.startsWith('esm')
@@ -30,12 +30,12 @@ test('transformImport with lodash', async () => {
3030
expect(Object.values(contents[format]!)[0]).toContain(
3131
format.startsWith('esm')
3232
? 'import * as __WEBPACK_EXTERNAL_MODULE_lodash_get__ from "lodash/get"'
33-
: 'var get_namespaceObject = require("lodash/get")',
33+
: 'const get_namespaceObject = require("lodash/get")',
3434
);
3535
expect(Object.values(contents[format]!)[0]).toContain(
3636
format.startsWith('esm')
3737
? 'import * as __WEBPACK_EXTERNAL_MODULE_lodash_fp_add__ from "lodash/fp/add"'
38-
: 'var add_namespaceObject = require("lodash/fp/add")',
38+
: 'const add_namespaceObject = require("lodash/fp/add")',
3939
);
4040
}
4141
});

e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"devDependencies": {
1212
"@e2e/helper": "workspace:*",
1313
"@playwright/test": "1.47.0",
14-
"@rsbuild/core": "1.0.2",
14+
"@rsbuild/core": "1.0.3",
1515
"@rslib/core": "workspace:*",
1616
"@rslib/tsconfig": "workspace:*",
1717
"@types/fs-extra": "^11.0.4",

examples/react-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "rslib build"
66
},
77
"devDependencies": {
8-
"@rsbuild/plugin-react": "1.0.1",
8+
"@rsbuild/plugin-react": "1.0.2",
99
"@rslib/core": "workspace:*",
1010
"@types/react": "^18.3.5",
1111
"react": "^18.3.1"

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"prebundle": "prebundle"
3838
},
3939
"dependencies": {
40-
"@rsbuild/core": "1.0.2",
40+
"@rsbuild/core": "1.0.3",
4141
"rsbuild-plugin-dts": "workspace:*"
4242
},
4343
"devDependencies": {

packages/plugin-dts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"@microsoft/api-extractor": "^7.47.8",
38-
"@rsbuild/core": "1.0.2",
38+
"@rsbuild/core": "1.0.3",
3939
"@rslib/tsconfig": "workspace:*",
4040
"rslib": "npm:@rslib/[email protected]",
4141
"typescript": "^5.6.2"

0 commit comments

Comments
 (0)