瀏覽代碼

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])