Skip to content

Commit

Permalink
fix: regression w/ templates not marked as entry (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey authored Nov 10, 2023
1 parent 5e23290 commit 8775664
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ export default class MarkoWebpackPlugin {
const { issuer } = data.contextInfo;
if (
data.request.endsWith(".marko") &&
issuer &&
!(
issuer.endsWith(".marko") ||
/[/\\]node_modules[/\\]/.test(issuer)
)
(!issuer ||
!(
issuer.endsWith(".marko") ||
/[/\\]node_modules[/\\]/.test(issuer)
))
) {
data.request = `${data.request}?server-entry`;
}
Expand Down

0 comments on commit 8775664

Please sign in to comment.