Skip to content

Commit 7621eac

Browse files
wayouskipjack
authored andcommitted
docs(guides): remove plugin that does not support tree shaking (#1778)
According to my test and the following issue, babel-minify-webpack-plugin does not support tree shaking. webpack-contrib/babel-minify-webpack-plugin#43
1 parent ce23a89 commit 7621eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/guides/tree-shaking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ In the code above webpack cannot determine whether or not the call to `mylib.tra
175175
176176
In general, when a tool cannot guarantee that a particular code path doesn't lead to side-effects, this code may remain in the generated bundle even if you are sure it shouldn't. Common situations include invoking a function from a third-party module that webpack and/or the minifier cannot inspect, re-exporting functions imported from third-party modules, etc.
177177
178-
The code used in this guide assumes you perform tree-shaking using UglifyJS plugin. However, there are other tools such as [webpack-rollup-loader](https://github.com/erikdesjardins/webpack-rollup-loader) or [Babel Minify Webpack Plugin](/plugins/babel-minify-webpack-plugin) that may produce different results depending on your setup.
178+
The code used in this guide assumes you perform tree-shaking using UglifyJS plugin. However, there are other tools such as [webpack-rollup-loader](https://github.com/erikdesjardins/webpack-rollup-loader) that may produce different results depending on your setup.
179179
180180
181181
## Conclusion

0 commit comments

Comments
 (0)