-
Notifications
You must be signed in to change notification settings - Fork 249
Open
Labels
Description
The linter currently doesn't use a separate recommendation for ESM preloads:
: this.warn('<link href=https://cdn.ampproject.org/v0.js rel=preload> is missing'); |
This is misleading, and might even lead to frustration if users blindly apply the recommendation and it doesn't solve the issue.
The linter should properly differentiate between:
.js
withrel=preload
.mjs
withrel=preload
.mjs
withrel=modulepreload
The recommendation should then be generated accordingly so that applying the recommendation verbatim will actually fix the shown issue.