When using verbatimModuleSyntax in a consuming app, compilation fails because Jira.js is a CommonJS library in TypeScript. This can be fixed with disableSourceOfProjectReferenceRedirect, but it's a bit of a shame to lose access to the source code when you have it right there. A better option would be to migrate the library to modern JavaScript standards and improve performance and compatibility along the way.
Motivation
https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax
When using
verbatimModuleSyntax
in a consuming app, compilation fails because Jira.js is a CommonJS library in TypeScript. This can be fixed withdisableSourceOfProjectReferenceRedirect
, but it's a bit of a shame to lose access to the source code when you have it right there. A better option would be to migrate the library to modern JavaScript standards and improve performance and compatibility along the way.Changes
verbatimModuleSyntax
ava
tovitest
References