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/configuration/devtool.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,11 +38,11 @@ T> Instead of using the `devtool` option you can also use `SourceMapDevToolPlugi
38
38
|`eval-cheap-source-map`|**build**: ok<br /><br />**rebuild**: fast | no | transformed | Tradeoff choice for development builds. |
39
39
|`eval-cheap-module-source-map`|**build**: slow<br /><br />**rebuild**: fast | no | original lines | Tradeoff choice for development builds. |
40
40
|**`eval-source-map`**|**build**: slowest<br /><br />**rebuild**: ok | no | original | Recommended choice for development builds with high quality SourceMaps. |
41
-
|`cheap-source-map`|**build**: ok<br /><br />**rebuild**: slow | no | transformed |
42
-
|`cheap-module-source-map`|**build**: slow<br /><br />**rebuild**: slow | no | original lines |
41
+
|`cheap-source-map`|**build**: ok<br /><br />**rebuild**: slow | no | transformed ||
42
+
|`cheap-module-source-map`|**build**: slow<br /><br />**rebuild**: slow | no | original lines ||
43
43
|**`source-map`**|**build**: slowest<br /><br />**rebuild**: slowest | yes | original | Recommended choice for production builds with high quality SourceMaps. |
44
-
|`inline-cheap-source-map`|**build**: ok<br /><br />**rebuild**: slow | no | transformed |
45
-
|`inline-cheap-module-source-map`|**build**: slow<br /><br />**rebuild**: slow | no | original lines |
44
+
|`inline-cheap-source-map`|**build**: ok<br /><br />**rebuild**: slow | no | transformed ||
45
+
|`inline-cheap-module-source-map`|**build**: slow<br /><br />**rebuild**: slow | no | original lines ||
46
46
|`inline-source-map`|**build**: slowest<br /><br />**rebuild**: slowest | no | original | Possible choice when publishing a single file |
47
47
|`eval-nosources-cheap-source-map`|**build**: ok<br /><br />**rebuild**: fast | no | transformed | source code not included |
48
48
|`eval-nosources-cheap-module-source-map`|**build**: slow<br /><br />**rebuild**: fast | no | original lines | source code not included |
|`module`| All module syntax that allows to reference javascript supports ESM.<br />(only combined with `import` or `require`) | webpack, rollup, wmr |
213
213
|`esmodules`| Always set by supported tools. | wmr |
214
-
|`types`| Request is issued from typescript that is interested in type declarations. |
214
+
|`types`| Request is issued from typescript that is interested in type declarations. ||
215
215
216
216
(1) `import` and `require` are both set independent of referencing syntax. `require` has always lower priority.
217
217
@@ -327,8 +327,8 @@ The following tools support custom conditions:
327
327
| Node.js | yes | Use [`--conditions`](https://nodejs.org/api/cli.html#cli_c_condition_conditions_condition) CLI argument. |
328
328
| webpack | yes | Use [`resolve.conditionNames`](/configuration/resolve/#resolveconditionnames) configuration option. |
329
329
| rollup | yes | Use `exportConditions` option for `@rollup/plugin-node-resolve`|
330
-
| esinstall | no |
331
-
| wmr | no |
330
+
| esinstall | no ||
331
+
| wmr | no ||
332
332
333
333
For custom conditions the following naming schema is recommended:
0 commit comments