Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/polyfills.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Polyfills

Depending on the browsers and environments your app targets, polyfills may be
required. This page lists some recommended polyfills.

## `Event()` constructor

We use [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)
inside Scully to be aware of different points in the lifecycle of the application.

To make this work in **Internet Explorer 10+**, include the following polyfill.

`npm install events-polyfill`

```ts
// src/polyfills.ts

import 'events-polyfill/src/constructors/Event.js';
```
1 change: 1 addition & 0 deletions docs/scully.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Visit one of the following topics:
- [Scully Configuration](scully-configuration.md)
- [Adding Blog Support](blog.md)
- [Working with Plugins](plugins.md)
- [Polyfills](polyfills.md)
- [Code of Conduct](CODE_OF_CONDUCT.md)
- [Issues](issues.md)
- [Contribution Guideline](../CONTRIBUTING.md)
Expand Down