Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 17, 2022
1 parent 166be34 commit c81e6ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,11 @@ class MiniCssExtractPlugin {

if (failedDeps.length === 0) {
// use this module and remove it from list
usedModules.add(/** @type {Module & { content: Buffer, media: string, sourceMap?: Buffer, supports?: string, layer?: string }} */ (list.pop()));
usedModules.add(
/** @type {Module & { content: Buffer, media: string, sourceMap?: Buffer, supports?: string, layer?: string }} */ (
list.pop()
)
);
success = true;
break;
}
Expand Down Expand Up @@ -1223,12 +1227,16 @@ class MiniCssExtractPlugin {
);
}

usedModules.add(/** @type {Module & { content: Buffer, media: string, sourceMap?: Buffer, supports?: string, layer?: string }} */ (fallbackModule));
usedModules.add(
/** @type {Module & { content: Buffer, media: string, sourceMap?: Buffer, supports?: string, layer?: string }} */ (
fallbackModule
)
);
}
}

this._sortedModulesCache.set(chunk, usedModules);

return usedModules;
}

Expand Down
2 changes: 1 addition & 1 deletion src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,4 +486,4 @@ function pitch(request) {
});
}

module.exports = { default: function loader() {}, pitch }
module.exports = { default: function loader() {}, pitch };

0 comments on commit c81e6ac

Please sign in to comment.