@@ -33,29 +33,28 @@ 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 // biome-ignore format: snapshot
36- expect ( mfExposeEntry ) . toMatchInlineSnapshot ( `""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=()=>{}}}]);"` ) ;
36+ expect ( mfExposeEntry ) . toMatchInlineSnapshot ( `""use strict";(globalThis["default_minify"]=globalThis["default_minify"]||[]).push([["249"],{163 :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
3939test ( 'minify is disabled by the user, bar and baz should not be minified' , async ( ) => {
4040 const fixturePath = join ( __dirname , 'mf/config' ) ;
4141 const { mfExposeEntry } = await buildAndGetResults ( { fixturePath } ) ;
42- expect ( mfExposeEntry ) . toMatchInlineSnapshot ( `
43- ""use strict";
44- (globalThis['disable_minify'] = globalThis['disable_minify'] || []).push([["249"], {
45- "../../__fixtures__/src/index.ts ": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
46- __webpack_require__.r(__webpack_exports__);
47- __webpack_require__.d(__webpack_exports__, {
48- foo: function() { return foo; }
49- });
50- const foo = ()=>{};
51- const bar = ()=>{};
52- const baz = ()=>{
53- return bar();
54- };
42+
43+ expect ( mfExposeEntry ) . toMatchInlineSnapshot ( ` ""use strict";
44+ (globalThis['disable_minify'] = globalThis['disable_minify'] || []).push([["249"], {
45+ "163 ": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
46+ __webpack_require__.r(__webpack_exports__);
47+ __webpack_require__.d(__webpack_exports__, {
48+ foo: function() { return foo; }
49+ });
50+ const foo = ()=>{};
51+ const bar = ()=>{};
52+ const baz = ()=>{
53+ return bar();
54+ };
5555
5656
57- }),
57+ }),
5858
59- }]);"
60- ` ) ;
59+ }]);"` ) ;
6160} ) ;
0 commit comments