You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @gottlike nah that size is right, the UMD exports are legacy files so it's been transpiled with Babel to work with IE11. The files you want to be looking at are lite.esm.js and lite.esm.min.js since they are for modern browsers. In your application you would use the module/nomodule pattern so something like this
Even for IE11 the file compresses well down to 25.8 kB. In addition, when you're using a bundler like Webpack or Rollup you would automatically pull in lite.esm.js. If you needed IE11 support for your web app you could transpile it with Babel, and then you would put this in a separate "chunk" so it's loaded very infrequently and cached. Frameworks like Next.js and Nuxtjs automatically do this via code-splitting. Therefore the majority of the size of lite.min.js is irrelevant I'd say.
The UMD versions of the Lite Player package (
lite.js
+lite.min.js
) seem to be the standard versions instead (over 70 kb uncompressed).You can check the files after installing the package (https://vime-js.com/lite/setup#installation) - they are much bigger than specified (https://vime-js.com/getting-started#features-differences).
The text was updated successfully, but these errors were encountered: