From 1843d60a023023f219958a776edaf2ddfe019981 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Fri, 14 Aug 2020 09:06:56 +0200 Subject: [PATCH] fix: webpack build --- .aegir.js | 8 ++++++++ package.json | 3 +++ 2 files changed, 11 insertions(+) diff --git a/.aegir.js b/.aegir.js index 83b7f8c..5eb001b 100644 --- a/.aegir.js +++ b/.aegir.js @@ -2,4 +2,12 @@ module.exports = { bundlesize: { maxSize: '140kB' }, + webpack: { + node: { + // needed by the mime-types module + path: true, + // needed by readable-web-to-node-stream module used by file-type + stream: true + } + } } diff --git a/package.json b/package.json index 8da0d13..09e2e25 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,9 @@ "test": "aegir test -t node", "test:node": "aegir test -t node" }, + "browser": { + "file-type": "file-type/browser" + }, "pre-push": [ "lint", "test"