Skip to content

Commit b1587e8

Browse files
jrenczskipjack
authored andcommitted
docs(plugins): clarify usage of ModuleConcatenationPlugin + Babel (#1766)
Adds more information about why the plugin may cause no effect when using Babel.
1 parent 2b1c304 commit b1587e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/plugins/module-concatenation-plugin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ new webpack.optimize.ModuleConcatenationPlugin()
1919
>
2020
> Scope hoisting is specifically a feature made possible by ECMAScript Module syntax. Because of this webpack may fallback to normal bundling based on what kind of modules you are using, and [other conditions](https://medium.com/webpack/webpack-freelancing-log-book-week-5-7-4764be3266f5).
2121
22+
W> Keep in mind that this plugin will only be applied to [ES6 modules](/api/module-methods/#es6-recommended-) processed directly by webpack. When using a transpiler, you'll need to disable module processing (e.g. the [`modules`](https://babeljs.io/docs/plugins/preset-es2015/#optionsmodules) option in Babel).
23+
2224

2325
## Optimization Bailouts
2426

0 commit comments

Comments
 (0)