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 (#792)
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
|`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