소스 검색

website: fix ESM import in example (#4103)

fix ESM import in example
Livia Medeiros 2 년 전
부모
커밋
e105312594
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      website/src/docs/index.md

+ 2 - 2
website/src/docs/index.md

@@ -24,8 +24,8 @@ Here’s the simplest example html page with Uppy (it uses a CDN bundle, while w
   <body>
   <body>
     <div id="drag-drop-area"></div>
     <div id="drag-drop-area"></div>
 
 
-    <script>
-      import {Uppy, Dashboard, Tus} from "https://releases.transloadit.com/uppy/v3.0.1/uppy.min.js"
+    <script type="module">
+      import {Uppy, Dashboard, Tus} from "https://releases.transloadit.com/uppy/v3.0.1/uppy.min.mjs"
       var uppy = new Uppy()
       var uppy = new Uppy()
         .use(Dashboard, {
         .use(Dashboard, {
           inline: true,
           inline: true,