Skip to content

Commit

Permalink
Make sure to only update sprStatus if page file
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Oct 31, 2019
1 parent 666ed62 commit b0d868b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class TerserPlugin {

// if we are using babel cache we can't rely on the page-config
// plugin to update this value so check for it manually
if (input.indexOf(prerenderId) > -1) {
if (file.match(/pages(\\|\/)/) && input.indexOf(prerenderId) > -1) {
sprStatus.used = true
}

Expand Down

0 comments on commit b0d868b

Please sign in to comment.