Skip to content

Commit 07ae262

Browse files
obiotclaude
andcommitted
README: switch CDN URLs from esm.run to cdn.jsdelivr.net
esm.run is a jsDelivr shorthand still in beta and not recommended for production. Use the standard cdn.jsdelivr.net/npm ESM URLs consistent with what other libraries (three.js, Phaser) use. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bee359e commit 07ae262

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Browse all examples [here](https://melonjs.github.io/melonJS/examples/)
163163
### Basic Hello World Example
164164

165165
```JavaScript
166-
import * as me from "https://esm.run/melonjs";
166+
import * as me from "https://cdn.jsdelivr.net/npm/melonjs/+esm";
167167

168168
me.device.onReady(function () {
169169
// initialize the display canvas once the device/browser is ready
@@ -223,10 +223,10 @@ Or use it directly via [jsDelivr](https://www.jsdelivr.com/package/npm/melonjs)
223223

224224
```html
225225
<!-- load the ES6 module bundle of melonJS v18.x -->
226-
<script type="module" src="https://esm.run/melonjs@18"></script>
226+
<script type="module" src="https://cdn.jsdelivr.net/npm/melonjs@18/+esm"></script>
227227
<!-- omit the version completely to get the latest one -->
228228
<!-- you should NOT use this in production -->
229-
<script type="module" src="https://esm.run/melonjs"></script>
229+
<script type="module" src="https://cdn.jsdelivr.net/npm/melonjs/+esm"></script>
230230
```
231231
> Note: the debug plugin is available separately as [`@melonjs/debug-plugin`](https://www.npmjs.com/package/@melonjs/debug-plugin)
232232

0 commit comments

Comments
 (0)