File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,23 +23,23 @@ or, to use the jQuery ECMAScript module:
23
23
24
24
``` html
25
25
<script type =" module" >
26
- import { $ } from " https://code.jquery.com/jquery-@VERSION.min.js" ;
26
+ import { $ } from " https://code.jquery.com/jquery-@VERSION.module. min.js" ;
27
27
</script >
28
28
```
29
29
30
30
or:
31
31
32
32
``` html
33
33
<script type =" module" >
34
- import { jQuery } from " https://code.jquery.com/jquery-@VERSION.min.js" ;
34
+ import { jQuery } from " https://code.jquery.com/jquery-@VERSION.module. min.js" ;
35
35
</script >
36
36
```
37
37
38
38
All jQuery modules export named ` $ ` & ` jQuery ` tokens; the further examples will just show ` $ ` . The default import also works:
39
39
40
40
``` html
41
41
<script type =" module" >
42
- import $ from " https://code.jquery.com/jquery-@VERSION.min.js" ;
42
+ import $ from " https://code.jquery.com/jquery-@VERSION.module. min.js" ;
43
43
</script >
44
44
```
45
45
@@ -55,7 +55,7 @@ or as a module:
55
55
56
56
``` html
57
57
<script type =" module" >
58
- import { $ } from " https://code.jquery.com/jquery-@VERSION.slim.min.js" ;
58
+ import { $ } from " https://code.jquery.com/jquery-@VERSION.module. slim.min.js" ;
59
59
</script >
60
60
```
61
61
@@ -67,8 +67,8 @@ To avoid repeating long import paths that change on each jQuery release, you can
67
67
<script type =" importmap" >
68
68
{
69
69
" imports" : {
70
- " jquery" : " https://code.jquery.com/jquery-@VERSION.min.js" ,
71
- " jquery/slim" : " https://code.jquery.com/jquery-@VERSION.slim.min.js"
70
+ " jquery" : " https://code.jquery.com/jquery-@VERSION.module. min.js" ,
71
+ " jquery/slim" : " https://code.jquery.com/jquery-@VERSION.module. slim.min.js"
72
72
}
73
73
}
74
74
</script >
You can’t perform that action at this time.
0 commit comments