We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52579aa commit 67d7fa2Copy full SHA for 67d7fa2
src/content/guides/tree-shaking.md
@@ -14,6 +14,7 @@ contributors:
14
- byzyk
15
- pnevares
16
- EugeneHlushko
17
+ - torifat
18
related:
19
- title: "webpack 4 beta — try it today!"
20
url: https://medium.com/webpack/webpack-4-beta-try-it-today-6b1d27d7d7e2#9a67
@@ -75,7 +76,10 @@ module.exports = {
75
76
path: path.resolve(__dirname, 'dist')
77
- }
78
+ },
-+ mode: 'development'
79
++ mode: 'development',
80
++ optimization: {
81
++ usedExports: true
82
++ }
83
};
84
```
85
@@ -186,7 +190,10 @@ module.exports = {
186
190
filename: 'bundle.js',
187
191
188
192
},
189
-- mode: 'development'
193
+- mode: 'development',
194
+- optimization: {
195
+- usedExports: true
196
+- }
197
+ mode: 'production'
198
199
0 commit comments