Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 0c61a36

Browse files
authored
fix: webpack build (#56)
1 parent 710a96d commit 0c61a36

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.aegir.js

+8
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22

33
module.exports = {
44
bundlesize: { maxSize: '140kB' },
5+
webpack: {
6+
node: {
7+
// needed by the mime-types module
8+
path: true,
9+
// needed by readable-web-to-node-stream module used by file-type
10+
stream: true
11+
}
12+
}
513
}

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"test": "aegir test -t node",
1212
"test:node": "aegir test -t node"
1313
},
14+
"browser": {
15+
"file-type": "file-type/browser"
16+
},
1417
"pre-push": [
1518
"lint",
1619
"test"

0 commit comments

Comments
 (0)