File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 1- ❗️ ** Warning: ** This package is under development, will be published shortly
1+
22
33# nuxt-polyfill
4- Ease adding polyfills to your Nuxt.js project using [ polyfill.io] ( polyfill.io ) among others.
4+ Ease adding polyfills to your Nuxt.js project.
5+
6+ ❗️ ** Requires** Nuxt 2
57
68## Features
79 - ✔ Easy to configure
810 - ❔ Lazy load polyfills ** only if needed**
911 - ⚡️ Aims to be as fast as possible
10- - 🔧 Supports custom polyfills
12+ - 🔧 Supports any polyfill as NPM package or JS file
1113
1214## Roadmap
1315 - ⭐️ Supports polyfills from [ polyfill.io] ( polyfill.io )
@@ -76,18 +78,18 @@ export default {
7678}
7779```
7880
79- ## Examples
80- ### Simple features
81-
82- ### Custom features
83-
84- ### Full Nuxt.js example projects
85-
8681## Documentation
8782### feature.name
83+ Type ` String ` . Not required.
84+
8885### feature.require
86+ Type ` String ` . NPM package or require path of JS file.
87+
8988### feature.detect
89+ Type ` Function ` . Detection function, should return a ` Boolean ` .
90+
9091### feature.install
91- ### feature.includeInBuild
92- ### feature.mode
92+ Type ` Function ` . Installation function. First argument is the default export in the required file/package.
9393
94+ ### feature.mode
95+ Not supported yet. Only client polyfills are supported.
You can’t perform that action at this time.
0 commit comments