Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/node-events/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ You can use the `file:preprocessor` event to do things like:
- Write your test code in ClojureScript.
- Customize the Babel settings to add your own plugins.
- Customize the options for compiling TypeScript.
- Swap out webpack for Browserify or anything else.
- Swap out Webpack for Vite or anything else.

Check out our [File Preprocessor API docs](/api/node-events/preprocessors-api) which
describe how to use this event.
Expand Down
1 change: 1 addition & 0 deletions docs/app/tooling/typescript-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ with the following configuration:
"compilerOptions": {
"target": "es5",
"lib": ["es5", "dom"],
"sourceMap": true,
"types": ["cypress", "node"]
},
"include": ["**/*.ts"]
Expand Down
5 changes: 5 additions & 0 deletions docs/partials/_source-maps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ source maps are enabled to get the same experience. Some examples of this includ
option: `prettySourceMaps`, but this option is buggy and setting source maps on the esbuild
bundler directly works better.
- The other bundlers all default their source maps appropriately.

If using [TypeScript](https://www.typescriptlang.org/) with any custom preprocessor, you will want to make sure that the [TypeScript](https://www.typescriptlang.org/)
compiler is generating source maps. This can be done by setting the [`sourceMap`](https://www.typescriptlang.org/tsconfig/#sourceMap) option in your
`tsconfig.json` to `true`. The [`inlineSourceMap`](https://www.typescriptlang.org/tsconfig/#inlineSourceMap) option is **not** recommended as it does not provide an accurate code frame.
Please see our recommended [tsconfig.json](/app/tooling/typescript-support#Configure-tsconfigjson) as a reference.