Skip to content

Commit bd48d48

Browse files
committed
chore: update
1 parent f48b9ab commit bd48d48

File tree

8 files changed

+66
-145
lines changed

8 files changed

+66
-145
lines changed

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ onlyBuiltDependencies:
1818

1919
overrides:
2020
'zx>@types/node': '-'
21-
'@rspack/core': 'npm:@rspack-canary/[email protected]34fbd33e-20251029061020'
21+
'@rspack/core': 'npm:@rspack-canary/[email protected]7953269b-20251029094959'
2222

2323
strictPeerDependencies: false
2424
autoInstallPeers: false

tests/integration/resolve/index.test.ts

Lines changed: 8 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -55,71 +55,15 @@ test('resolve with condition exports', async () => {
5555

5656
expect(isSuccess).toBeTruthy();
5757

58-
if (process.env.ADVANCED_ESM) {
59-
expect(nodeResults).toMatchInlineSnapshot(`
60-
[
61-
"const value = 'lib2 module';
62-
export { value };
63-
",
64-
"import { __webpack_require__ } from "./runtime.js";
65-
__webpack_require__.add({
66-
"./node_modules/lib1/src/index.cjs": function(module) {
67-
module.exports.value = 'lib1 cjs';
68-
}
69-
});
70-
",
71-
"const value = 'lib1 mjs';
72-
export { value };
73-
",
74-
"import { value } from "./767.js";
75-
console.log(value);
76-
",
77-
"import { value } from "./192.js";
78-
console.log(value);
79-
",
80-
"console.log("node");
81-
",
82-
"import { __webpack_require__ } from "./runtime.js";
83-
import "./75.js";
84-
__webpack_require__.add({
85-
"./entry4.ts": function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
86-
console.log(__webpack_require__("./node_modules/lib1/src/index.cjs").value);
87-
}
88-
});
89-
__webpack_require__("./entry4.ts");
90-
",
91-
"var __webpack_modules__ = {};
92-
var __webpack_module_cache__ = {};
93-
function __webpack_require__(moduleId) {
94-
var cachedModule = __webpack_module_cache__[moduleId];
95-
if (void 0 !== cachedModule) return cachedModule.exports;
96-
var module = __webpack_module_cache__[moduleId] = {
97-
exports: {}
98-
};
99-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
100-
return module.exports;
101-
}
102-
__webpack_require__.m = __webpack_modules__;
103-
(()=>{
104-
__webpack_require__.add = function(modules) {
105-
Object.assign(__webpack_require__.m, modules);
106-
};
107-
})();
108-
export { __webpack_require__ };
109-
",
110-
]
111-
`);
112-
} else {
113-
expect(nodeResults[0]).toContain('lib1 mjs');
114-
expect(nodeResults[1]).toContain('lib2 module');
115-
expect(nodeResults[2]).toContain('node');
116-
expect(nodeResults[3]).toContain('lib1 cjs');
58+
expect(nodeResults[0]).toContain('lib1 mjs');
59+
expect(nodeResults[1]).toContain('lib2 module');
60+
expect(nodeResults[2]).toContain('node');
61+
expect(nodeResults[3]).toContain('lib1 cjs');
11762

118-
expect(browserResults[0]).toContain('lib1 mjs');
119-
expect(browserResults[1]).toContain('lib2 module');
120-
expect(browserResults[2]).toContain('browser');
121-
expect(browserResults[3]).toContain('lib1 cjs');
122-
}
63+
expect(browserResults[0]).toContain('lib1 mjs');
64+
expect(browserResults[1]).toContain('lib2 module');
65+
expect(browserResults[2]).toContain('browser');
66+
expect(browserResults[3]).toContain('lib1 cjs');
12367
});
12468

12569
test('resolve with js extensions', async () => {

tests/integration/style/css-modules-named/index.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ test('should extract css-modules named export successfully in bundle', async ()
2020
`);
2121
if (process.env.ADVANCED_ESM) {
2222
expect(js.entries.esm).toMatchInlineSnapshot(`
23-
"import { __webpack_require__ } from "./runtime.js";
24-
__webpack_require__.add({});
23+
"import "./runtime.js";
2524
var _1 = "content-wrapper-iNtwbA";
2625
const src_button = _1;
2726
export { src_button as button };

tests/integration/style/less/bundle-import/rslib.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,4 @@ export default defineConfig({
2525
target: 'web',
2626
},
2727
plugins: [pluginLess()],
28-
tools: {
29-
rspack: {
30-
optimization: {
31-
splitChunks: false,
32-
},
33-
},
34-
},
3528
});

tests/integration/style/sass/bundle/rslib.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,4 @@ export default defineConfig({
2727
output: {
2828
target: 'web',
2929
},
30-
tools: {
31-
rspack: {
32-
optimization: {
33-
splitChunks: false,
34-
},
35-
},
36-
},
3730
});

tests/integration/vue/index.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ describe.runIf(platform() !== 'win32')('ESM', async () => {
1414
if (process.env.ADVANCED_ESM) {
1515
expect(js.contents.esm1).toMatchInlineSnapshot(`
1616
{
17-
"<ROOT>/tests/integration/vue/dist/bundle/index.js": "import { __webpack_require__ } from "./runtime.js";
17+
"<ROOT>/tests/integration/vue/dist/bundle/index.js": "import "./runtime.js";
1818
import { createElementBlock, openBlock, ref, toDisplayString } from "vue";
19-
__webpack_require__.add({});
2019
const _00_2Fplugin_vue_2Fexport_helper = (sfc, props)=>{
2120
const target = sfc.__vccOpts || sfc;
2221
for (const [key, val] of props)target[key] = val;

tests/integration/vue/rslib.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,4 @@ export default defineConfig({
2424
},
2525
}),
2626
],
27-
tools: {
28-
rspack: {
29-
optimization: {
30-
splitChunks: false,
31-
},
32-
},
33-
},
3427
});

0 commit comments

Comments
 (0)