Skip to content

Commit 219d805

Browse files
authored
docs: add webpackExports warning with destructuring assignments (#7371)
1 parent 8ee730e commit 219d805

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/api/module-methods.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ T> Note that `webpackInclude` and `webpackExclude` options do not interfere with
194194

195195
Tells webpack to only bundle the specified exports of a dynamically `import()`ed module. It can decrease the output size of a chunk. Available since [webpack 5.0.0-beta.18](https://github.com/webpack/webpack/releases/tag/v5.0.0-beta.18).
196196

197+
W> `webpackExports` cannot be used with destructuring assignments.
198+
197199
## CommonJS
198200

199201
The goal of CommonJS is to specify an ecosystem for JavaScript outside the browser. The following CommonJS methods are supported by webpack:

0 commit comments

Comments
 (0)