File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 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:
2323
2424``` html
2525<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" ;
2727 </script >
2828```
2929
3030or:
3131
3232``` html
3333<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" ;
3535 </script >
3636```
3737
3838All jQuery modules export named ` $ ` & ` jQuery ` tokens; the further examples will just show ` $ ` . The default import also works:
3939
4040``` html
4141<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" ;
4343 </script >
4444```
4545
@@ -55,7 +55,7 @@ or as a module:
5555
5656``` html
5757<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" ;
5959 </script >
6060```
6161
@@ -67,8 +67,8 @@ To avoid repeating long import paths that change on each jQuery release, you can
6767<script type =" importmap" >
6868 {
6969 " 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"
7272 }
7373 }
7474 </script >
You can’t perform that action at this time.
0 commit comments