marvinhagemeister / karma-esbuild

Preprocessor based on esbuild for the karma test runner
MIT License
21 stars 10 forks source link

File import order is not preserved in singleBundle #44

Open thatsmydoing opened 2 years ago

thatsmydoing commented 2 years ago

When using singleBundle, the order of the imports does not match the file / pattern list. This affects some plugins like karma-mocha whose injected files must be in the correct order, otherwise you would get errors similar to

TypeError: undefined is not an object (evaluating 'window.mocha.setup')
oschwald commented 2 years ago

I've also run into this issue.