Skip to content

Commit 898bfc0

Browse files
authored
Merge pull request #78 from alitonia/fix/change-polyfill-default-url
fix:change default polyfill url to cloudflare CDN
2 parents fda5d5e + 409def4 commit 898bfc0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Get your module up and running quickly.
44
Find and replace all on all files (CMD+SHIFT+F):
55
- Name: Nupolyon
66
- Package name: nupolyon
7-
- Description: Auto-Inject polyfill from polyfill.io
7+
- Description: Auto-Inject polyfill from https://cdnjs.cloudflare.com/polyfill/
88
-->
99

1010
# Nupolyon
@@ -13,7 +13,7 @@ Find and replace all on all files (CMD+SHIFT+F):
1313
[![npm downloads][npm-downloads-src]][npm-downloads-href]
1414
[![License][license-src]][license-href]
1515

16-
> Auto-Inject polyfill from polyfill.io
16+
> Auto-Inject polyfill from https://cdnjs.cloudflare.com/polyfill/
1717
1818
- [ Release Notes](/CHANGELOG.md)
1919
<!-- - [📖 &nbsp;Documentation](https://example.com) -->
@@ -22,7 +22,7 @@ Find and replace all on all files (CMD+SHIFT+F):
2222

2323
<!-- Highlight some of the features your module provide here -->
2424
-&nbsp;[Automatic detection][polyfillist] based on browserslist target
25-
-&nbsp;Using [polyfill.io](https://polyfill.io) CDN, Custom CDN, or Self-Host
25+
-&nbsp;Using [cloudflare polyfill](https://cdnjs.cloudflare.com/polyfill/) CDN, Custom CDN, or Self-Host
2626

2727
See the detailed feature explanation here: [#58 (comment)](https://github.com/adenvt/nupolyon/issues/58#issuecomment-1676713711)
2828

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "git+https://github.com/adenvt/nupolyon.git"
77
},
88
"packageManager": "[email protected]",
9-
"description": "Auto-Inject polyfill from polyfill.io",
9+
"description": "Auto-Inject polyfill",
1010
"license": "MIT",
1111
"type": "module",
1212
"exports": {

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineNuxtModule<ModuleOptions>({
2424
},
2525
// Default configuration options of the Nuxt module
2626
defaults: {
27-
host: 'https://polyfill.io/v3/polyfill.min.js',
27+
host: 'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js',
2828
},
2929
async setup (options, nuxt) {
3030
const resolver = createResolver(import.meta.url)

0 commit comments

Comments
 (0)