6.1.0
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
- ⬆️ Bump json5 and postcss-modules by @dependabot in #21
Full Changelog: 6.0.1...6.1.0