Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ _Note: Gaps between patch versions are faulty, broken or test releases._

* **Bug Fix**
* Fix tooltip styling in dark mode when using CSS Modules ([#688](https://github.com/webpack/webpack-bundle-analyzer/pull/688) by [@theEquinoxDev](https://github.com/theEquinoxDev))

* Avoid parse failures for bundles with IIFE ([#685](https://github.com/webpack/webpack-bundle-analyzer/pull/685) by [@hai-x](https://github.com/hai-x))

## 5.1.0

Expand Down
2 changes: 1 addition & 1 deletion src/parseUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function parseBundle(bundlePath, opts) {

if (firstVariableDeclaration) {
for (const declaration of firstVariableDeclaration.declarations) {
if (declaration.init) {
if (declaration.init && isModulesList(declaration.init)) {
state.locations = getModulesLocations(declaration.init);

if (state.locations) {
Expand Down
1 change: 1 addition & 0 deletions test/bundles/validBundleWithIIFE.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(()=>{const e=console.log("foo");})();
3 changes: 3 additions & 0 deletions test/bundles/validBundleWithIIFE.modules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"modules": {}
}