Skip to content

6.1.0

Compare
Choose a tag to compare
@pixeldesu pixeldesu released this 31 Dec 08:05
· 6 commits to main since this release

What's Changed

New feature: ✨ Entrypoint detection ✨

If webpackJsonp can't be found, moduleRaid will try to do some guesswork in the window object and pick the next fitting array/function containing webpack or chunk in the name.

If no entrypoint can be found through this way, moduleRaid will now exit early instead of running into the injection and possibly erroring out.

To restore the old behaviour of requiring an entrypoint to exist, a new constructor flag strict has been added. With strict mode enabled, if webpackJsonp (or an entrypoint set via the entrypoint option) is not found, moduleRaid will also exit early.

Bug fix

The final "brute-force" injection method has been fixed, and if webpackJsonp does not exist as function, you will now correctly see an Unknown Webpack structure error

Dependency updates

Full Changelog: 6.0.1...6.1.0