You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/api/module-methods.md
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ sort: 3
5
5
contributors:
6
6
- skipjack
7
7
- sokra
8
+
- fadysamirsadek
8
9
- byzyk
9
10
related:
10
11
- title: CommonJS Wikipedia
@@ -74,14 +75,14 @@ W> This feature relies on [`Promise`](https://developer.mozilla.org/en-US/docs/W
74
75
The spec for `import` doesn't allow control over the chunk's name or other properties as "chunks" are only a concept within webpack. Luckily webpack allows some special parameters via comments so as to not break the spec:
`webpackIgnore`: Disables dynamic import parsing when set to `true`.
100
+
101
+
W> Note that setting `webpackIgnore` to `true` opts out of code splitting.
102
+
94
103
`webpackChunkName`: A name for the new chunk. Since webpack 2.6.0, the placeholders `[index]` and `[request]` are supported within the given string to an incremented number or the actual resolved filename respectively.
95
104
96
105
`webpackMode`: Since webpack 2.6.0, different modes for resolving dynamic imports can be specified. The following options are supported:
0 commit comments