This repository was archived by the owner on Oct 1, 2021. It is now read-only.
File tree 3 files changed +2
-15
lines changed
3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,7 @@ const path = require('path')
4
4
5
5
const esbuild = {
6
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 : / ^ s t r e a m $ / } , ( ) => {
13
- return { path : require . resolve ( 'readable-stream' ) }
14
- } )
15
- }
16
- }
17
- ]
7
+ inject : [ path . join ( __dirname , 'scripts/node-globals.js' ) ]
18
8
}
19
9
20
10
/** @type {import('aegir').PartialOptions } */
@@ -27,7 +17,6 @@ module.exports = {
27
17
}
28
18
} ,
29
19
build : {
30
- bundlesizeMax : '45kB' ,
31
- config : esbuild
20
+ bundlesizeMax : '37kB'
32
21
}
33
22
}
Original file line number Diff line number Diff line change 76
76
"level-6" : " npm:level@^6.0.0" ,
77
77
"ncp" : " ^2.0.0" ,
78
78
"npm-run-all" : " ^4.1.5" ,
79
- "readable-stream" : " ^3.6.0" ,
80
79
"rimraf" : " ^3.0.0" ,
81
80
"sinon" : " ^10.0.0" ,
82
81
"stand-in" : " ^4.2.0" ,
Original file line number Diff line number Diff line change 1
1
// file: node-globals.js
2
2
// @ts -nocheck
3
3
export const { Buffer } = require ( 'buffer' )
4
- export const process = require ( 'process/browser' )
You can’t perform that action at this time.
0 commit comments