@@ -310,7 +310,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
310310 },
311311 experiments : {
312312 lazyBarrel: true ,
313- inlineEnum: false ,
313+ inlineEnum: true ,
314314 typeReexportsPresence: true ,
315315 rspackFuture: {
316316 bundlerInfo: {
@@ -592,7 +592,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
592592 rspackExperiments: {
593593 collectTypeScriptInfo: {
594594 typeExports: true ,
595- exportedEnum: false
595+ exportedEnum: true
596596 }
597597 }
598598 }
@@ -646,7 +646,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
646646 rspackExperiments: {
647647 collectTypeScriptInfo: {
648648 typeExports: true ,
649- exportedEnum: false
649+ exportedEnum: true
650650 }
651651 }
652652 }
@@ -888,7 +888,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
888888 loader: ' <ROOT>/node_modules/<PNPM_INNER>/@rsbuild/core/dist/transformRawLoader.mjs' ,
889889 options: {
890890 id: ' rsbuild-transform-0' ,
891- getEnvironment : ()=> environment
891+ getEnvironment : ()=> environmentContext
892892 }
893893 }
894894 ]
@@ -946,11 +946,13 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
946946 /* config.plugin('define') */
947947 new DefinePlugin (
948948 {
949- ' import.meta.env.MODE' : ' "production"' ,
950- ' import.meta.env.DEV' : false ,
951- ' import.meta.env.PROD' : true ,
952- ' import.meta.env.BASE_URL' : ' "/"' ,
953- ' import.meta.env.ASSET_PREFIX' : ' "auto"' ,
949+ ' import.meta.env' : {
950+ MODE: ' "production"' ,
951+ DEV: false ,
952+ PROD: true ,
953+ BASE_URL: ' "/"' ,
954+ ASSET_PREFIX: ' "auto"'
955+ },
954956 ' process.env.BASE_URL' : ' "/"' ,
955957 ' process.env.ASSET_PREFIX' : ' "auto"'
956958 }
@@ -1006,7 +1008,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
10061008 },
10071009 experiments : {
10081010 lazyBarrel: true ,
1009- inlineEnum: false ,
1011+ inlineEnum: true ,
10101012 typeReexportsPresence: true ,
10111013 rspackFuture: {
10121014 bundlerInfo: {
@@ -1286,7 +1288,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
12861288 rspackExperiments: {
12871289 collectTypeScriptInfo: {
12881290 typeExports: true ,
1289- exportedEnum: false
1291+ exportedEnum: true
12901292 }
12911293 }
12921294 }
@@ -1340,7 +1342,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
13401342 rspackExperiments: {
13411343 collectTypeScriptInfo: {
13421344 typeExports: true ,
1343- exportedEnum: false
1345+ exportedEnum: true
13441346 }
13451347 }
13461348 }
@@ -1582,7 +1584,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
15821584 loader: ' <ROOT>/node_modules/<PNPM_INNER>/@rsbuild/core/dist/transformRawLoader.mjs' ,
15831585 options: {
15841586 id: ' rsbuild-transform-0' ,
1585- getEnvironment : ()=> environment
1587+ getEnvironment : ()=> environmentContext
15861588 }
15871589 }
15881590 ]
@@ -1637,11 +1639,13 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
16371639 /* config.plugin('define') */
16381640 new DefinePlugin (
16391641 {
1640- ' import.meta.env.MODE' : ' "production"' ,
1641- ' import.meta.env.DEV' : false ,
1642- ' import.meta.env.PROD' : true ,
1643- ' import.meta.env.BASE_URL' : ' "/"' ,
1644- ' import.meta.env.ASSET_PREFIX' : ' "auto"' ,
1642+ ' import.meta.env' : {
1643+ MODE: ' "production"' ,
1644+ DEV: false ,
1645+ PROD: true ,
1646+ BASE_URL: ' "/"' ,
1647+ ASSET_PREFIX: ' "auto"'
1648+ },
16451649 ' process.env.BASE_URL' : ' "/"' ,
16461650 ' process.env.ASSET_PREFIX' : ' "auto"' ,
16471651 ' import.meta.url' : ' __rslib_import_meta_url__'
@@ -1696,7 +1700,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
16961700 },
16971701 experiments : {
16981702 lazyBarrel: true ,
1699- inlineEnum: false ,
1703+ inlineEnum: true ,
17001704 typeReexportsPresence: true ,
17011705 rspackFuture: {
17021706 bundlerInfo: {
@@ -1955,7 +1959,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
19551959 rspackExperiments: {
19561960 collectTypeScriptInfo: {
19571961 typeExports: true ,
1958- exportedEnum: false
1962+ exportedEnum: true
19591963 }
19601964 }
19611965 }
@@ -2009,7 +2013,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
20092013 rspackExperiments: {
20102014 collectTypeScriptInfo: {
20112015 typeExports: true ,
2012- exportedEnum: false
2016+ exportedEnum: true
20132017 }
20142018 }
20152019 }
@@ -2181,7 +2185,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
21812185 loader: ' <ROOT>/node_modules/<PNPM_INNER>/@rsbuild/core/dist/transformRawLoader.mjs' ,
21822186 options: {
21832187 id: ' rsbuild-transform-0' ,
2184- getEnvironment : ()=> environment
2188+ getEnvironment : ()=> environmentContext
21852189 }
21862190 }
21872191 ]
@@ -2236,11 +2240,13 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
22362240 /* config.plugin('define') */
22372241 new DefinePlugin (
22382242 {
2239- ' import.meta.env.MODE' : ' "production"' ,
2240- ' import.meta.env.DEV' : false ,
2241- ' import.meta.env.PROD' : true ,
2242- ' import.meta.env.BASE_URL' : ' "/"' ,
2243- ' import.meta.env.ASSET_PREFIX' : ' ""' ,
2243+ ' import.meta.env' : {
2244+ MODE: ' "production"' ,
2245+ DEV: false ,
2246+ PROD: true ,
2247+ BASE_URL: ' "/"' ,
2248+ ASSET_PREFIX: ' ""'
2249+ },
22442250 ' process.env.BASE_URL' : ' "/"' ,
22452251 ' process.env.ASSET_PREFIX' : ' ""'
22462252 }
@@ -2292,7 +2298,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
22922298 },
22932299 experiments : {
22942300 lazyBarrel: true ,
2295- inlineEnum: false ,
2301+ inlineEnum: true ,
22962302 typeReexportsPresence: true ,
22972303 rspackFuture: {
22982304 bundlerInfo: {
@@ -2553,7 +2559,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
25532559 rspackExperiments: {
25542560 collectTypeScriptInfo: {
25552561 typeExports: true ,
2556- exportedEnum: false
2562+ exportedEnum: true
25572563 }
25582564 }
25592565 }
@@ -2607,7 +2613,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
26072613 rspackExperiments: {
26082614 collectTypeScriptInfo: {
26092615 typeExports: true ,
2610- exportedEnum: false
2616+ exportedEnum: true
26112617 }
26122618 }
26132619 }
@@ -2779,7 +2785,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
27792785 loader: ' <ROOT>/node_modules/<PNPM_INNER>/@rsbuild/core/dist/transformRawLoader.mjs' ,
27802786 options: {
27812787 id: ' rsbuild-transform-0' ,
2782- getEnvironment : ()=> environment
2788+ getEnvironment : ()=> environmentContext
27832789 }
27842790 }
27852791 ]
@@ -2833,11 +2839,13 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
28332839 /* config.plugin('define') */
28342840 new DefinePlugin (
28352841 {
2836- ' import.meta.env.MODE' : ' "production"' ,
2837- ' import.meta.env.DEV' : false ,
2838- ' import.meta.env.PROD' : true ,
2839- ' import.meta.env.BASE_URL' : ' "/"' ,
2840- ' import.meta.env.ASSET_PREFIX' : ' ""' ,
2842+ ' import.meta.env' : {
2843+ MODE: ' "production"' ,
2844+ DEV: false ,
2845+ PROD: true ,
2846+ BASE_URL: ' "/"' ,
2847+ ASSET_PREFIX: ' ""'
2848+ },
28412849 ' process.env.BASE_URL' : ' "/"' ,
28422850 ' process.env.ASSET_PREFIX' : ' ""'
28432851 }
@@ -2889,7 +2897,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
28892897 },
28902898 experiments : {
28912899 lazyBarrel: true ,
2892- inlineEnum: false ,
2900+ inlineEnum: true ,
28932901 typeReexportsPresence: true ,
28942902 rspackFuture: {
28952903 bundlerInfo: {
@@ -3125,7 +3133,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
31253133 rspackExperiments: {
31263134 collectTypeScriptInfo: {
31273135 typeExports: true ,
3128- exportedEnum: false
3136+ exportedEnum: true
31293137 }
31303138 }
31313139 }
@@ -3185,7 +3193,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
31853193 rspackExperiments: {
31863194 collectTypeScriptInfo: {
31873195 typeExports: true ,
3188- exportedEnum: false
3196+ exportedEnum: true
31893197 }
31903198 }
31913199 }
@@ -3407,11 +3415,13 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
34073415 /* config.plugin('define') */
34083416 new DefinePlugin (
34093417 {
3410- ' import.meta.env.MODE' : ' "production"' ,
3411- ' import.meta.env.DEV' : false ,
3412- ' import.meta.env.PROD' : true ,
3413- ' import.meta.env.BASE_URL' : ' "/"' ,
3414- ' import.meta.env.ASSET_PREFIX' : ' ""' ,
3418+ ' import.meta.env' : {
3419+ MODE: ' "production"' ,
3420+ DEV: false ,
3421+ PROD: true ,
3422+ BASE_URL: ' "/"' ,
3423+ ASSET_PREFIX: ' ""'
3424+ },
34153425 ' process.env.BASE_URL' : ' "/"' ,
34163426 ' process.env.ASSET_PREFIX' : ' ""'
34173427 }
0 commit comments