Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis authored Nov 18, 2024
1 parent 6271207 commit 146d712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/slow-plums-bake.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'playroom': patch
---

Restrict VanillaExtract plugin to playroom's source `.css.ts` files only
Restrict `playroom`'s Vanilla Extract plugin to only process playroom's `.css.ts` files
4 changes: 3 additions & 1 deletion lib/makeWebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ module.exports = async (playroomConfig, options) => {
// Only apply VanillaExtract plugin to playroom's source `.css.ts` files
return (
/\.css\.ts$/i.test(filePath) &&
includePaths.some((playRoomPath) => filePath.includes(playRoomPath))
includePaths.some((playroomPath) =>
filePath.startsWith(playroomPath)
)
);
},
}),
Expand Down

0 comments on commit 146d712

Please sign in to comment.