Skip to content

Commit ef6cc5a

Browse files
committed
Fix browser examples using the ESM file
1 parent 2500c76 commit ef6cc5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

HISTORY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
you can load it as a module there:
2828
```html
2929
<script type="module">
30-
import typed from 'typed-function/lib/esm/typed-function.js'
30+
import typed from 'typed-function/lib/esm/typed-function.mjs'
3131
</script>
3232
```
3333

examples/browser.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</head>
66
<body>
77
<script type="module">
8-
import typed from '../lib/esm/typed-function.js'
8+
import typed from '../lib/esm/typed-function.mjs'
99

1010
// create a typed function
1111
var fn1 = typed({

test/browserEsmBuild.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</head>
66
<body>
77
<script type="module">
8-
import typed from '../lib/esm/typed-function.js'
8+
import typed from '../lib/esm/typed-function.mjs'
99

1010
// create a typed function
1111
var fn1 = typed({

0 commit comments

Comments
 (0)