Skip to content

Commit 0cd77d7

Browse files
author
nyqykk
committed
test: remove target 'node'
1 parent a161b55 commit 0cd77d7

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

tests/integration/minify/index.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test('minify is enabled by default in mf format, bar and baz should be minified'
3333
const fixturePath = join(__dirname, 'mf/default');
3434
const { mfExposeEntry } = await buildAndGetResults({ fixturePath });
3535
expect(mfExposeEntry).toMatchInlineSnapshot(`
36-
""use strict";exports.ids=["249"];exports.modules={"../../__fixtures__/src/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{foo:function(){return foo}});const foo=()=>{}}};"
36+
""use strict";(globalThis["webpackChunkminify_mf_default_test"]=globalThis["webpackChunkminify_mf_default_test"]||[]).push([["249"],{"../../__fixtures__/src/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{foo:function(){return foo}});const foo=()=>{}}}]);"
3737
`);
3838
});
3939

@@ -42,8 +42,7 @@ test('minify is disabled by the user, bar and baz should not be minified', async
4242
const { mfExposeEntry } = await buildAndGetResults({ fixturePath });
4343
expect(mfExposeEntry).toMatchInlineSnapshot(`
4444
""use strict";
45-
exports.ids = ['249'];
46-
exports.modules = {
45+
(globalThis['webpackChunkminify_mf_config_test'] = globalThis['webpackChunkminify_mf_config_test'] || []).push([["249"], {
4746
"../../__fixtures__/src/index.ts": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4847
__webpack_require__.r(__webpack_exports__);
4948
__webpack_require__.d(__webpack_exports__, {
@@ -58,7 +57,6 @@ test('minify is disabled by the user, bar and baz should not be minified', async
5857
5958
}),
6059
61-
};
62-
;"
60+
}]);"
6361
`);
6462
});

tests/integration/minify/mf/config/rslib.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export default defineConfig({
2020
}),
2121
],
2222
output: {
23-
target: 'node',
2423
minify: false,
2524
},
2625
source: {

tests/integration/minify/mf/default/rslib.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ export default defineConfig({
1919
},
2020
}),
2121
],
22-
output: {
23-
target: 'node',
24-
},
2522
source: {
2623
entry: {
2724
index: path.resolve(__dirname, '../../__fixtures__/src/index.ts'),

0 commit comments

Comments
 (0)