Explorar o código

website: exclude preact from plugin bundle size calculations (#1841)

This makes the sizes a little more accurate to the actual effect on the bundle, because preact is already unconditionally included in @uppy/core. They still over-estimate the effect (which is probably more "honest" than underestimating it).
Renée Kooi %!s(int64=5) %!d(string=hai) anos
pai
achega
1b4f0a9642
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      website/inject.js

+ 2 - 0
website/inject.js

@@ -69,6 +69,8 @@ async function getMinifiedSize (pkg, name) {
   const b = browserify(pkg)
   if (name !== '@uppy/core' && name !== 'uppy') {
     b.exclude('@uppy/core')
+    // Already unconditionally included through @uppy/core
+    b.exclude('preact')
   }
   if (excludes[name]) {
     b.exclude(excludes[name])