Closed alabbas-ali closed 6 years ago
I do wonder if it'd make more sense to do the check when populating the outputs
map.
If you can safely assume that the first entry is always the one we want, i would consider just adding the first one to the map and leave the existing code as is.
Are we sure that the first entry will always be right, too?
I do wonder if it'd make more sense to do the check when populating the
outputs
map.If you can safely assume that the first entry is always the one we want, I would consider just adding the first one to the map and leave the existing code as is.
Are we sure that the first entry will always be right, too?
the first entry is always the js file, the second entry may be the map file or CSS file etc.. depending on the configuration of webpack. but the first entry is always the chank JS file. I think this is what we want to test. If I am not mistaken
@alabbas-ali Would you mind sending a PR with these changes formaster
(v4.0.0-rc.2
) aswell ? 🙏
Released in v3.0.5
🎉
I do wonder if it'd make more sense to do the check when populating the
outputs
map. If you can safely assume that the first entry is always the one we want, I would consider just adding the first one to the map and leave the existing code as is. Are we sure that the first entry will always be right, too?the first entry is always the js file, the second entry may be the map file or CSS file etc.. depending on the configuration of webpack. but the first entry is always the chank JS file. I think this is what we want to test. If I am not mistaken
I did more testing, with different config, unfortunately, I found out that the assumption "that the first file is the JS" is not the case always, So I had to fix this please check out https://github.com/webpack-contrib/karma-webpack/pull/360
Could we also uplift this to the 4.x branch too?
Could we also uplift this to the 4.x branch too?
Ping?
This is blocking us updating to 4.x, since otherwise we get:
21 09 2018 23:54:23.585:ERROR [karma]: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
Could we also uplift this to the 4.x branch too?
Ping?
This is blocking us updating to 4.x, since otherwise we get:
21 09 2018 23:54:23.585:ERROR [karma]: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
I create a pull request out of it #361. but please review #360 before.
Is this going to be included in the next 4.x release?
Can this be released?
Thank you, it works for me now! +1
When configuring Webpack to compile ts, the output is array and karma-webpack throw Exception like
Type
Issues
SemVer