mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 13:53:53 +02:00
Clarify built distribution files in docs
This commit is contained in:
@@ -27,7 +27,9 @@ ESM is preferred because it gives you tree shaking.
|
|||||||
|
|
||||||
You can also just include the library using a script tag in your HTML:
|
You can also just include the library using a script tag in your HTML:
|
||||||
```html
|
```html
|
||||||
<script src="path/to/mediabunny.js"></script>
|
<script src="mediabunny.cjs"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
You can download the built distribution file from the [releases page](https://github.com/Vanilagy/mediabunny/releases).
|
This will add a `Mediabunny` object to the global scope.
|
||||||
|
|
||||||
|
You can download a built distribution file from the [releases page](https://github.com/Vanilagy/mediabunny/releases). Use the `*.cjs` builds for normal script tag inclusion, or the `*.mjs` builds for script tags with `type="module"` or direct imports via ESM. Including the `mediabunny.d.ts` declaration file in your TypeScript project will declare a global `Mediabunny` namespace.
|
||||||
Reference in New Issue
Block a user