This repository was archived by the owner on Mar 23, 2023. It is now read-only.
File tree 3 files changed +25
-8
lines changed
3 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
+ const path = require ( 'path' )
4
+
5
+ /** @type {import('aegir').Options["build"]["config"] } */
6
+ const esbuild = {
7
+ inject : [ path . join ( __dirname , './scripts/node-globals.js' ) ]
8
+ }
9
+
10
+ /** @type {import('aegir').PartialOptions } */
3
11
module . exports = {
4
- webpack : {
5
- node : {
6
- // this is needed until level stops using node buffers in browser code
7
- Buffer : true
12
+ build : {
13
+ bundlesizeMax : '65KB'
14
+ } ,
15
+ test : {
16
+ browser : {
17
+ config : {
18
+ buildConfig : esbuild
19
+ }
8
20
}
9
21
}
10
- }
22
+ }
Original file line number Diff line number Diff line change 43
43
"homepage" : " https://github.com/ipfs/js-datastore-level#readme" ,
44
44
"dependencies" : {
45
45
"datastore-core" : " ^3.0.0" ,
46
- "interface-datastore" : " ^3.0.3 " ,
46
+ "interface-datastore" : " ^3.0.6 " ,
47
47
"level" : " ^6.0.1"
48
48
},
49
49
"devDependencies" : {
50
- "aegir" : " ^30.3.0" ,
50
+ "aegir" : " ^33.1.0" ,
51
+ "assert" : " ^2.0.0" ,
52
+ "buffer" : " ^6.0.3" ,
51
53
"chai" : " ^4.2.0" ,
52
54
"cids" : " ^1.1.5" ,
53
55
"dirty-chai" : " ^2.0.1" ,
54
56
"level-mem" : " ^5.0.1" ,
55
- "rimraf" : " ^3.0.0"
57
+ "rimraf" : " ^3.0.0" ,
58
+ "util" : " ^0.12.3"
56
59
},
57
60
"eslintConfig" : {
58
61
"extends" : " ipfs"
Original file line number Diff line number Diff line change
1
+ // @ts -nocheck
2
+ export const { Buffer } = require ( 'buffer' )
You can’t perform that action at this time.
0 commit comments