@@ -33,29 +33,28 @@ test('minify is enabled by default in mf format, bar and baz should be minified'
33
33
const fixturePath = join ( __dirname , 'mf/default' ) ;
34
34
const { mfExposeEntry } = await buildAndGetResults ( { fixturePath } ) ;
35
35
// 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=()=>{}}}]);"` ) ;
37
37
} ) ;
38
38
39
39
test ( 'minify is disabled by the user, bar and baz should not be minified' , async ( ) => {
40
40
const fixturePath = join ( __dirname , 'mf/config' ) ;
41
41
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
+ };
55
55
56
56
57
- }),
57
+ }),
58
58
59
- }]);"
60
- ` ) ;
59
+ }]);"` ) ;
61
60
} ) ;
0 commit comments