Skip to content

Commit

Permalink
Fix TypeScript 5 bug cypress-io#26308
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonM committed Mar 31, 2023
1 parent 849d4d3 commit 7dd8b91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/lib/plugins/child/ts_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const getTsNodeOptions = (tsPath, registeredFile) => {
*/
const compilerOptions = {
module: 'commonjs',
moduleResolution: 'node',
...(semver.satisfies(version, '>=4.5.0')
// Only adding this option for TS >= 4.5.0
? { preserveValueImports: false }
Expand Down

0 comments on commit 7dd8b91

Please sign in to comment.