Skip to content

Commit 40b3f25

Browse files
committed
docs(api): add warning about mixing module syntaxes
1 parent d503499 commit 40b3f25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/api/module-methods.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ related:
1313

1414
This section covers all methods available in code compiled with webpack. When using webpack to bundle your application, you can pick from a variety of module syntax styles including [ES6](https://en.wikipedia.org/wiki/ECMAScript#6th_Edition_-_ECMAScript_2015), [CommonJS](https://en.wikipedia.org/wiki/CommonJS), and [AMD](https://en.wikipedia.org/wiki/Asynchronous_module_definition).
1515

16+
W> While webpack supports multiple module syntaxes, we recommend following a single syntax for consistency and to avoid odd behaviors/bugs. Here's [one example](https://github.com/webpack/webpack.js.org/issues/552) of mixing ES6 and CommonJS, however there are surely others.
17+
1618

1719
## ES6 (Recommended)
1820

0 commit comments

Comments
 (0)