Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump rsbuild 1.0.3 #201

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/silent-cobras-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rslib/core': patch
---

release
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ The project is still in its early stages and under active development, so it pos

| Package | Link |
| ------------ | -------------------------------------------------------------------- |
| @rspack/core | [1.0.3](https://github.com/web-infra-dev/rspack/releases/tag/v1.0.3) |
| @rspack/core | [1.0.5](https://github.com/web-infra-dev/rspack/releases/tag/v1.0.5) |
8 changes: 4 additions & 4 deletions e2e/cases/auto-external/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test('auto external default should works', async () => {
);

expect(js!.entries.cjs).toContain(
'var external_react_namespaceObject = require("react");',
'const external_react_namespaceObject = require("react");',
);

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

expect(entries.cjs).toContain(
'var external_react_namespaceObject = require("react");',
'const external_react_namespaceObject = require("react");',
);
expect(entries.cjs).toContain(
'var jsx_runtime_namespaceObject = require("react/jsx-runtime");',
'const jsx_runtime_namespaceObject = require("react/jsx-runtime");',
);
});

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

expect(entries.cjs).toContain(
'var external_react1_namespaceObject = require("react1");',
'const external_react1_namespaceObject = require("react1");',
);
});

Expand Down
8 changes: 4 additions & 4 deletions e2e/cases/bundle-false/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ test('auto add extension for relative import', async () => {
}

for (const requirer of [
'var external_bar_cjs_namespaceObject = require("./bar.cjs");',
'var external_baz_cjs_namespaceObject = require("./baz.cjs");',
'var external_foo_cjs_namespaceObject = require("./foo.cjs");',
'var external_qux_cjs_namespaceObject = require("./qux.cjs");',
'const external_bar_cjs_namespaceObject = require("./bar.cjs");',
'const external_baz_cjs_namespaceObject = require("./baz.cjs");',
'const external_foo_cjs_namespaceObject = require("./foo.cjs");',
'const external_qux_cjs_namespaceObject = require("./qux.cjs");',
]) {
expect(Object.values(contents.cjs)[3]).toContain(requirer);
}
Expand Down
6 changes: 3 additions & 3 deletions e2e/cases/externals/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ test('auto externalize Node.js built-in modules when `output.target` is "node"',
}

for (const external of [
'var external_fs_namespaceObject = require("fs");',
'var external_node_assert_namespaceObject = require("node:assert");',
'var external_react_namespaceObject = require("react");',
'const external_fs_namespaceObject = require("fs");',
'const external_node_assert_namespaceObject = require("node:assert");',
'const external_react_namespaceObject = require("react");',
'module.exports = require("bar");',
'module.exports = require("foo");',
]) {
Expand Down
2 changes: 1 addition & 1 deletion e2e/cases/resolve/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test('resolve node protocol', async () => {
expect(isSuccess).toBeTruthy();
expect(entries.esm).toMatchInlineSnapshot(`
"import * as __WEBPACK_EXTERNAL_MODULE_node_path__ from "node:path";
var external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
const { join } = external_node_path_namespaceObject["default"];
export { join };
"
Expand Down
6 changes: 3 additions & 3 deletions e2e/cases/transform-import/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('transformImport with arco-design', async () => {
expect(Object.values(contents[format]!)[0]).toContain(
format.startsWith('esm')
? 'import * as __WEBPACK_EXTERNAL_MODULE__arco_design_web_react_es_button__ from "@arco-design/web-react/es/button"'
: 'var button_namespaceObject = require("@arco-design/web-react/es/button")',
: 'const button_namespaceObject = require("@arco-design/web-react/es/button")',
);
expect(Object.values(contents[format]!)[0]).toContain(
format.startsWith('esm')
Expand All @@ -30,12 +30,12 @@ test('transformImport with lodash', async () => {
expect(Object.values(contents[format]!)[0]).toContain(
format.startsWith('esm')
? 'import * as __WEBPACK_EXTERNAL_MODULE_lodash_get__ from "lodash/get"'
: 'var get_namespaceObject = require("lodash/get")',
: 'const get_namespaceObject = require("lodash/get")',
);
expect(Object.values(contents[format]!)[0]).toContain(
format.startsWith('esm')
? 'import * as __WEBPACK_EXTERNAL_MODULE_lodash_fp_add__ from "lodash/fp/add"'
: 'var add_namespaceObject = require("lodash/fp/add")',
: 'const add_namespaceObject = require("lodash/fp/add")',
);
}
});
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"devDependencies": {
"@e2e/helper": "workspace:*",
"@playwright/test": "1.47.0",
"@rsbuild/core": "1.0.2",
"@rsbuild/core": "1.0.3",
"@rslib/core": "workspace:*",
"@rslib/tsconfig": "workspace:*",
"@types/fs-extra": "^11.0.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"build": "rslib build"
},
"devDependencies": {
"@rsbuild/plugin-react": "1.0.1",
"@rsbuild/plugin-react": "1.0.2",
"@rslib/core": "workspace:*",
"@types/react": "^18.3.5",
"react": "^18.3.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prebundle": "prebundle"
},
"dependencies": {
"@rsbuild/core": "1.0.2",
"@rsbuild/core": "1.0.3",
"rsbuild-plugin-dts": "workspace:*"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-dts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@microsoft/api-extractor": "^7.47.8",
"@rsbuild/core": "1.0.2",
"@rsbuild/core": "1.0.3",
"@rslib/tsconfig": "workspace:*",
"rslib": "npm:@rslib/[email protected]",
"typescript": "^5.6.2"
Expand Down
Loading
Loading