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

Commit 36ed8f0

Browse files
committed
chore: remove node globals
1 parent f98d385 commit 36ed8f0

File tree

3 files changed

+1
-31
lines changed

3 files changed

+1
-31
lines changed

.aegir.js

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,8 @@
11
'use strict'
22

3-
const path = require('path')
4-
5-
const esbuild = {
6-
// this will inject all the named exports from 'node-globals.js' as globals
7-
inject: [path.join(__dirname, 'scripts/node-globals.js')],
8-
plugins: [
9-
{
10-
name: 'node built ins', // this will make the bundler resolve node builtins to the respective browser polyfill
11-
setup (build) {
12-
build.onResolve({ filter: /^stream$/ }, () => {
13-
return { path: require.resolve('readable-stream') }
14-
})
15-
}
16-
}
17-
]
18-
}
19-
203
/** @type {import('aegir').PartialOptions} */
214
module.exports = {
22-
test: {
23-
browser: {
24-
config: {
25-
buildConfig: esbuild
26-
}
27-
}
28-
},
295
build: {
30-
bundlesizeMax: '45kB',
31-
config: esbuild
6+
bundlesizeMax: '45kB'
327
}
338
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
"level-6": "npm:level@^6.0.0",
7777
"ncp": "^2.0.0",
7878
"npm-run-all": "^4.1.5",
79-
"readable-stream": "^3.6.0",
8079
"rimraf": "^3.0.0",
8180
"sinon": "^10.0.0",
8281
"stand-in": "^4.2.0",

scripts/node-globals.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)