Closed kirill-konshin closed 4 years ago
I'm not sure, most likely for safety it makes sense to do feature detection here.
Maybe a simple if( data.resource) do it the old way?
Yes, it should be enough
There's a separate issue regarding done(null, data)
-> done(null)
. Also on a side note I think it's perfectly fine to release a new major version that will support webpack@5+
only.
You can actually use the same check for the done part. It has access to data right there
I've added ifs
any update for this PR?
Thanks, once I get some time I'll take a look.
Did you determine if this works in older versions of Webpack as well?