In our testes we actively use statements like require('./specs/my-data.json') to load test data. But karma-typescript treats all files loaded via require as modules and adds to all of them __esModule and default properties.
Is it possible to avoid adding __esModule and default properties for some files?
In our testes we actively use statements like
require('./specs/my-data.json')
to load test data. Butkarma-typescript
treats all files loaded viarequire
as modules and adds to all of them__esModule
anddefault
properties.Is it possible to avoid adding
__esModule
anddefault
properties for some files?