Skip to content

Commit 11339af

Browse files
committed
maint(docs): Improve documentation on how to use the polyfills loader.
1 parent 2da8ed7 commit 11339af

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/polyfills.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// Polyfills for older browsers, most notably IE11.
2-
// Usage: Import this module
3-
// import "@patternslib/patternslib/src/polyfills";
2+
//
3+
// Use polyfills-loader.js before the Patternslib bundle to conditionally load
4+
// the polyfills for Internet Explorer:
5+
//
6+
// <script src="polyfills-loader.js" type="text/javascript"></script>
47

58
// Core JS features
69
// You can also import individual core-js features:
7-
//import "core-js/stable/object/assign";
10+
// import "core-js/stable/object/assign";
811
// But we're importing them all:
912
import "core-js/stable";
1013

0 commit comments

Comments
 (0)