When running in singleBundle: false mode, karma will inject a <script src="…"></script> for each matched esbuild file, using the normal base/* or absolute/* URL paths to the file. By overriding the extension used in file.path, we make sure that karma will point to a .js file and not a .ts or .tsx file.
When running in
singleBundle: false
mode, karma will inject a<script src="…"></script>
for each matched esbuild file, using the normalbase/*
orabsolute/*
URL paths to the file. By overriding the extension used infile.path
, we make sure that karma will point to a.js
file and not a.ts
or.tsx
file.Fixes #48