karma-systemjs icon indicating copy to clipboard operation
karma-systemjs copied to clipboard

useBundles setting ignored

Open ghost opened this issue 7 years ago • 1 comments

I was digging around trying to work around #90, so I tried to use the useBundles setting and noticed it seems to have no effect.

I put a breakpoint at https://github.com/rolaveric/karma-systemjs/blob/22c0f98ba25ca385729e46f249ff35670ab43c1a/lib/adapter.js#L164 and saw that the useBundles property was not set.

It seems that only the properties set at https://github.com/rolaveric/karma-systemjs/blob/651750b5897f1fadebaaea4a9e34a4b9b5a6bbab/lib/framework.js#L263 are persisted.

So this if block checks for the existence of a property that will never exist, and therefore runs unconditionally - and throws an error in SystemJS 0.20.

ghost avatar Jan 30 '17 20:01 ghost

@errorx666 thanks for pointing this out. It helped me create #92

AdamWillden avatar Feb 06 '17 18:02 AdamWillden