Nupolyon

Auto-Inject polyfill from polyfill.io
Features
Quick Setup
- Add
nupolyon
dependency to your project
pnpm add -D nupolyon
yarn add --dev nupolyon
npm install --save-dev nupolyon
- Add
nupolyon
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'nupolyon'
]
})
That's it! You can now use Nupolyon in your Nuxt app ✨
Configuration
Change host
export default defineNuxtConfig({
modules: [
'nupolyon'
],
nupolyon: {
host: 'http://my-own-cdn.com/polyfill.min.js'
},
})
Selfhost mode
Set host to selfhost
to enable self-host mode
export default defineNuxtConfig({
modules: [
'nupolyon'
],
nupolyon: {
host: 'selfhost'
},
})
Development
npm install
npm run dev:prepare
npm run dev
npm run dev:build
npm run lint
npm run test
npm run test:watch
npm run release
License
This project published under MIT License, see LICENSE for more details.