Sfoglia il codice sorgente

Merge pull request #1239 from kubecost/spom/ui-module-type

UI build fails with "Browser scripts cannot have imports or exports"
Sean Pomeroy 4 anni fa
parent
commit
9a36a897f1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      ui/src/index.html

+ 1 - 1
ui/src/index.html

@@ -7,6 +7,6 @@
     </head>
     <body>
         <div id="app" class="page-container"></div>
-        <script src="./app.js"></script>
+        <script src="./app.js" type="module"></script>
     </body>
 </html>