Skip to content

Commit 2642d94

Browse files
committed
chore: update
1 parent c2d0f68 commit 2642d94

File tree

5 files changed

+23
-15
lines changed

5 files changed

+23
-15
lines changed

pnpm-lock.yaml

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/json/index.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ describe('JSON', async () => {
1010
test('bundle', async () => {
1111
const { content: bundle } = queryContent(contents.esm0!, /index\.js/);
1212
expect(bundle).toMatchInlineSnapshot(`
13-
"var foo_namespaceObject = {
14-
S: "foo"
15-
};
16-
const src = foo_namespaceObject.S + '1';
17-
export { src as default };
18-
"
19-
`);
13+
"var foo_namespaceObject = {
14+
U: "foo"
15+
};
16+
const src = foo_namespaceObject.U + '1';
17+
export { src as default };
18+
"
19+
`);
2020
const bundleResult = await import(files.esm0![0]!);
2121
expect(bundleResult.default).toBe('foo1');
2222
});

tests/integration/minify/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('minify config (mf)', () => {
5656
// biome-ignore format: snapshot
5757
expect(mfExposeEntry).toMatchInlineSnapshot(`
5858
"/*! For license information please see __federation_expose_default_export.js.LICENSE.txt */
59-
"use strict";(globalThis["default_minify"]=globalThis["default_minify"]||[]).push([["249"],{759:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Button:()=>Button,foo:()=>foo});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(37);/*! Legal Comment */const foo=()=>{};const Button=()=>/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{})}}]);"
59+
"use strict";(globalThis["default_minify"]=globalThis["default_minify"]||[]).push([["525"],{233:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Button:()=>Button,foo:()=>foo});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(491);/*! Legal Comment */const foo=()=>{};const Button=()=>/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{})}}]);"
6060
`);
6161
});
6262

@@ -66,14 +66,14 @@ describe('minify config (mf)', () => {
6666

6767
expect(mfExposeEntry).toMatchInlineSnapshot(`
6868
""use strict";
69-
(globalThis["disable_minify"] = globalThis["disable_minify"] || []).push([["249"], {
70-
759: (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
69+
(globalThis["disable_minify"] = globalThis["disable_minify"] || []).push([["525"], {
70+
233: (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7171
__webpack_require__.r(__webpack_exports__);
7272
__webpack_require__.d(__webpack_exports__, {
7373
Button: () => (Button),
7474
foo: () => (foo)
7575
});
76-
/* ESM import */var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37);
76+
/* ESM import */var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(491);
7777
/* ESM import */var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
7878
/*! Legal Comment */
7979
const foo = ()=>{};

tests/integration/node-polyfill/bundle-false/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"buffer": "^6.0.3"
88
},
99
"devDependencies": {
10+
"@rsbuild/core": "1.5.0-beta.0",
1011
"@rsbuild/plugin-node-polyfill": "^1.4.1"
1112
}
1213
}

tests/integration/node-polyfill/bundle/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"type": "module",
66
"devDependencies": {
7+
"@rsbuild/core": "1.5.0-beta.0",
78
"@rsbuild/plugin-node-polyfill": "^1.4.1"
89
}
910
}

0 commit comments

Comments
 (0)