Skip to content

Commit 7f7a4cc

Browse files
author
nyqykk
committed
fix: fix cspell lint error
1 parent 0cd77d7 commit 7f7a4cc

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

tests/integration/minify/index.test.ts

Lines changed: 2 additions & 2 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";(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=()=>{}}}]);"
36+
""use strict";(globalThis["default_minify"]=globalThis["default_minify"]||[]).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,7 +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-
(globalThis['webpackChunkminify_mf_config_test'] = globalThis['webpackChunkminify_mf_config_test'] || []).push([["249"], {
45+
(globalThis['disable_minify'] = globalThis['disable_minify'] || []).push([["249"], {
4646
"../../__fixtures__/src/index.ts": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4747
__webpack_require__.r(__webpack_exports__);
4848
__webpack_require__.d(__webpack_exports__, {

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ export default defineConfig({
1919
},
2020
}),
2121
],
22+
// add chunkLoadingGlobal to avoid cspell error
23+
tools: {
24+
rspack: {
25+
output: {
26+
chunkLoadingGlobal: 'disable_minify',
27+
},
28+
},
29+
},
2230
output: {
2331
minify: false,
2432
},

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ export default defineConfig({
1919
},
2020
}),
2121
],
22+
// add chunkLoadingGlobal to avoid cspell error
23+
tools: {
24+
rspack: {
25+
output: {
26+
chunkLoadingGlobal: 'default_minify',
27+
},
28+
},
29+
},
2230
source: {
2331
entry: {
2432
index: path.resolve(__dirname, '../../__fixtures__/src/index.ts'),

0 commit comments

Comments
 (0)