Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Check all runtimes for usage before marking CSS for removals (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles committed Apr 27, 2021
1 parent cd095f9 commit aa82025
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nine-pots-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'treat': patch
---

Check all runtimes for usage before marking CSS for removals
2 changes: 1 addition & 1 deletion packages/treat/src/webpack-plugin/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const webpack5 = {
isModuleUsed: (compilation, module) => {
const exportsInfo = compilation.moduleGraph.getExportsInfo(module);

return exportsInfo.isModuleUsed('main');
return exportsInfo.isModuleUsed();
},
getDependencyModule: (compilation, dependency) =>
compilation.moduleGraph.getModule(dependency),
Expand Down

0 comments on commit aa82025

Please sign in to comment.