Skip to content

Commit 2d25131

Browse files
authored
chore: update inline examples (#385)
1 parent c60f533 commit 2d25131

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

rspack/inline-const-enum/rspack.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export default {
77
},
88
mode: 'production',
99
optimization: {
10+
// This is the feature that enables inlining, it's enabled by default in production mode
11+
inlineExports: true,
1012
// disable minimize so you can understand the output
1113
minimize: false,
1214
},

rspack/inline-const/rspack.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export default {
88
},
99
mode: 'production',
1010
optimization: {
11+
// This is the feature that enables inlining, it's enabled by default in production mode
12+
inlineExports: true,
1113
// disable minimize so you can understand the output
1214
minimize: false,
1315
},

rspack/inline-enum/rspack.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export default {
77
},
88
mode: 'production',
99
optimization: {
10+
// This is the feature that enables inlining, it's enabled by default in production mode
11+
inlineExports: true,
1012
// disable minimize so you can understand the output
1113
minimize: false,
1214
},

0 commit comments

Comments
 (0)