Преглед на файлове

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 преди 5 години
родител
ревизия
1b4f0a9642
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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])