Skip to content

Commit 2ffe2df

Browse files
neeharvskipjack
authored andcommitted
docs(config): add output.jsonpScriptType docs (#1770)
This feature will be included in the next v3 release. See the following pull request for reference: webpack/webpack#6225
1 parent 073c11d commit 2ffe2df

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/content/configuration/output.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ Enable [cross-origin](https://developer.mozilla.org/en/docs/Web/HTML/Element/scr
9595
`crossOriginLoading: "use-credentials"` - Enable cross-origin loading **with credentials**
9696

9797

98+
## `output.jsonpScriptType`
99+
100+
`string`
101+
102+
Allows customization of the `script` type webpack injects `script` tags into the DOM to download async chunks. The following options are available:
103+
104+
- `"text/javascript"` (default)
105+
- `"module"`: Use with ES6 ready code.
106+
107+
98108
## `output.devtoolFallbackModuleFilenameTemplate`
99109

100110
`string | function(info)`

0 commit comments

Comments
 (0)