Skip to content

Commit

Permalink
docs: add note about transpiling/polyfilling
Browse files Browse the repository at this point in the history
  • Loading branch information
yokuze committed Nov 15, 2023
1 parent fe7a306 commit 74cb223
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ that you can use to register the plugin with videojs by passing in a reference t

Then, follow the steps in the "Configuration" section above.

> [!WARNING]
> This plugin's source code uses ES6+ syntax and keywords, such as `class` and `static`.
> If you need to support [browsers that do not support newer JavaScript
> syntax](https://caniuse.com/es6), you will need to use a tool like
> [Babel](https://babeljs.io/) to transpile and polyfill your code.
>
> Alternatively, you can
> `require('@silvermine/videojs-airplay/dist/silvermine-videojs-airplay.js')`
> to use a JavaScript file that has already been polyfilled/transpiled down to ES5
> compatibility.
### Using the CSS and images

If you are using SCSS in your project, you can simply reference the plugin's main SCSS
Expand Down

0 comments on commit 74cb223

Please sign in to comment.