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
feat: add formatter.pathType option for absolute path
Add `formatter.pathType` option with available values `relative`
(default) and `absolute`. If you set it to `absolute`, the plugin will
print absolute paths to error locations.
✅ Closes: #789
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,14 +93,14 @@ you can place your configuration in the:
93
93
94
94
Options passed to the plugin constructor will overwrite options from the cosmiconfig (using [deepmerge](https://github.com/TehShrike/deepmerge)).
|`async`|`boolean`|`compiler.options.mode === 'development'`| If `true`, reports issues **after** webpack's compilation is done. Thanks to that it doesn't block the compilation. Used only in the `watch` mode. |
99
-
|`typescript`|`object`|`{}`| See [TypeScript options](#typescript-options). |
100
-
|`issue`|`object`|`{}`| See [Issues options](#issues-options). |
101
-
|`formatter`|`string` or `object` or `function`|`codeframe`| Available formatters are `basic`, `codeframe` and a custom `function`. To [configure](https://babeljs.io/docs/en/babel-code-frame#options)`codeframe` formatter, pass object: `{ type: 'codeframe', options: { <coderame options> } }`. |
102
-
|`logger`|`{ log: function, error: function }` or `webpack-infrastructure`|`console`| Console-like object to print issues in `async` mode.|
103
-
|`devServer`|`boolean`|`true`| If set to `false`, errors will not be reported to Webpack Dev Server. |
|`async`|`boolean`|`compiler.options.mode === 'development'`| If `true`, reports issues **after** webpack's compilation is done. Thanks to that it doesn't block the compilation. Used only in the `watch` mode. |
99
+
|`typescript`|`object`|`{}`| See [TypeScript options](#typescript-options). |
100
+
|`issue`|`object`|`{}`| See [Issues options](#issues-options). |
101
+
|`formatter`|`string` or `object` or `function`|`codeframe`| Available formatters are `basic`, `codeframe` and a custom `function`. To [configure](https://babeljs.io/docs/en/babel-code-frame#options)`codeframe` formatter, pass: `{ type: 'codeframe', options: { <coderame options> } }`. To use absolute file path, pass: `{ type: 'codeframe', pathType: 'absolute' }`. |
102
+
|`logger`|`{ log: function, error: function }` or `webpack-infrastructure`|`console`| Console-like object to print issues in `async` mode.|
103
+
|`devServer`|`boolean`|`true`| If set to `false`, errors will not be reported to Webpack Dev Server. |
0 commit comments