-
Notifications
You must be signed in to change notification settings - Fork 0
/
_test.js
28 lines (25 loc) · 809 Bytes
/
_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env node
test();
async function test(){
console.log('hello')
console.log('')
console.debug('typeof module:', typeof module)
console.debug('module:', module)
console.log('')
console.log('BFS:', global.BrowserFS = require('./browser-fs-core.min'))
console.log('BFS_DOM:', require('./browser-fs-dom.min'))
console.log('main:', require('./main'))
const core = {make:x=>Object()};
const preloaded = require('./main').preload(core);
console.log('preloaded:', preloaded)
console.log('default:', await (require('./main').default))
console.log('preloaded:', preloaded)
console.log('')
console.log('bye')
};
/*
(typeof module === 'object')
&& (typeof exports === 'object')
&& exports && (module?.exports === exports))
&& module.exports = BrowserFS;
*/