Ver Fonte

Set tsify target to ES3

Renée Kooi há 6 anos atrás
pai
commit
7eed66d6f9
2 ficheiros alterados com 1 adições e 7 exclusões
  1. 1 1
      bin/endtoend-build-tests
  2. 0 6
      test/endtoend/typescript/main.ts

+ 1 - 1
bin/endtoend-build-tests

@@ -32,5 +32,5 @@ pushd "${__root}/test/endtoend/typescript"
   mkdir -p dist
   cp "${__root}/packages/uppy/dist/uppy.min.css" dist/
   cp index.html dist/
-  browserify main.ts -p tsify -o dist/bundle.js
+  browserify main.ts -p [ tsify --target ES3 ] -o dist/bundle.js
 popd

+ 0 - 6
test/endtoend/typescript/main.ts

@@ -8,12 +8,6 @@ import Webcam = require('@uppy/webcam')
 import Tus = require('@uppy/tus')
 import Form = require('@uppy/form')
 
-window.onerror = (err) => {
-  const el = document.createElement('p') as HTMLParagraphElement
-  el.textContent = err.stack
-  document.body.appendChild(el)
-}
-
 const TUS_ENDPOINT = 'https://master.tus.io/files/'
 
 const uppy = Uppy({