Mapping: webcomponentsjs -> cdn.jsdelivr.net (#1184)

This commit is contained in:
nobody 2022-10-24 18:36:34 +02:00
parent 697d451a2c
commit 5e191a5a8c
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 9 additions and 0 deletions

View File

@ -264,6 +264,15 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': 'resources/google-material-design-icons/google-material-design-icons.css',
'bundle': ''
};
} else if (CompleteURL.startsWith('cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-loader.')) {
lastVersion = targets.setLastVersion('/webcomponentsjs/');
return {
'source': channelHost,
'versionDelivered': lastVersion,
'versionRequested': 'latest',
'path': `resources/webcomponentsjs/${lastVersion}/webcomponents-loader.min.jsm`,
'bundle': ''
};
}
return {
'result': false,