Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): only remove nomodule and defer at…
Browse files Browse the repository at this point in the history
…tributes empty values

Closes #20207

(cherry picked from commit 84f3977)
  • Loading branch information
alan-agius4 authored and filipesilva committed Mar 8, 2021
1 parent 8b39764 commit 99ea6ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class InlineCriticalCssProcessor {
// Clean up value from value less attributes.
// This is caused because parse5 always requires attributes to have a string value.
// nomodule="" defer="" -> nomodule defer.
content: content.replace(/(\s[a-z]+)=""/g, '$1'),
content: content.replace(/(\s(?:defer|nomodule))=""/g, '$1'),
errors: critters.errors,
warnings: critters.warnings,
};
Expand Down

0 comments on commit 99ea6ad

Please sign in to comment.