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
-`v8` with [`experimentalAstAwareRemapping: true`](https://vitest.dev/config/#coverage-experimentalAstAwareRemapping) see [ast-v8-to-istanbul | Ignoring code](https://github.com/AriPerkkio/ast-v8-to-istanbul?tab=readme-ov-file#ignoring-code)
193
194
194
195
When using TypeScript the source codes are transpiled using `esbuild`, which strips all comments from the source codes ([esbuild#516](https://github.com/evanw/esbuild/issues/516)).
195
196
Comments which are considered as [legal comments](https://esbuild.github.io/api/#legal-comments) are preserved.
196
197
197
-
For `istanbul` provider you can include a `@preserve` keyword in the ignore hint.
198
+
You can include a `@preserve` keyword in the ignore hint.
198
199
Beware that these ignore hints may now be included in final production build as well.
199
200
200
201
```diff
201
202
-/* istanbul ignore if */
202
203
+/* istanbul ignore if -- @preserve */
203
204
if (condition) {
204
-
```
205
-
206
-
For `v8` this does not cause any issues. You can use `v8 ignore` comments with Typescript as usual:
0 commit comments