Browse Source

website: fix ESM import in example (#4103)

fix ESM import in example
Livia Medeiros 2 years ago
parent
commit
e105312594
1 changed files with 2 additions and 2 deletions
  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>
     <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()
         .use(Dashboard, {
           inline: true,