1.0.9 • Published 2 years ago
@ndla/polyfill v1.0.9
Polyfill
This package includes polyfills for various browsers, but is mainly intended for IE 11. It includes minimum requirements and commonly used language features used by NDLA projects.
Installation
$ yarn @ndla/polyfill
Usage
Simple
// This must be the first line in your bundle.
import '@ndla/polyfill';
Advanced
- Create an umd build of
@ndla/polyfill
- Use
<ScriptLoader>
to conditional load the polyfill based on the following features. Scripts that depend on the polyfill are loaded after the polyfill.
import ScriptLoader from '@ndla/polyfill/lib/ScriptLoader';
const Document = (props) => {
const polyfill = { src: '/polyfill.min.js' };
const scripts = [{ src: '/vendor.min.js' }, { src: '/client.min.js' }];
return (
<html>
<head />
<body>
<ScriptLoader polyfill={polyfill} scripts={scripts} />
</body>
</html>
);
};
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.3
3 years ago
0.1.15
4 years ago
0.1.14
4 years ago
0.1.13
4 years ago
0.1.12
4 years ago
0.1.11
4 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.8-alpha.40
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.1
6 years ago
0.0.0
7 years ago