diff options
author | 2023-06-01 21:16:47 -0400 | |
---|---|---|
committer | 2023-06-01 18:16:47 -0700 | |
commit | 4df1d37ddc54242c339765f22fb90ba2e9e3a99a (patch) | |
tree | d63ede76463e7ecba78a4d4b31e5e8158193552f /src/bun.js/os.exports.js | |
parent | 03ffd1c732aaaa30b5481f197221ce96da559e63 (diff) | |
download | bun-4df1d37ddc54242c339765f22fb90ba2e9e3a99a.tar.gz bun-4df1d37ddc54242c339765f22fb90ba2e9e3a99a.tar.zst bun-4df1d37ddc54242c339765f22fb90ba2e9e3a99a.zip |
Bundle and minify `.exports.js` files. (#3036)
* move all exports.js into src/js
* finalize the sort of this
* and it works
* add test.ts to gitignore
* okay
* convert some to ts just to show
* finish up
* fixup makefile
* minify syntax in dev
* finish rebase
* dont minify all modules
* merge
* finish rebase merge
* flaky test that hangs
Diffstat (limited to 'src/bun.js/os.exports.js')
-rw-r--r-- | src/bun.js/os.exports.js | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/bun.js/os.exports.js b/src/bun.js/os.exports.js deleted file mode 100644 index 78f6d5ffc..000000000 --- a/src/bun.js/os.exports.js +++ /dev/null @@ -1,56 +0,0 @@ -function bound(obj) { - return { - arch: obj.arch.bind(obj), - cpus: obj.cpus.bind(obj), - endianness: obj.endianness.bind(obj), - freemem: obj.freemem.bind(obj), - getPriority: obj.getPriority.bind(obj), - homedir: obj.homedir.bind(obj), - hostname: obj.hostname.bind(obj), - loadavg: obj.loadavg.bind(obj), - networkInterfaces: obj.networkInterfaces.bind(obj), - platform: obj.platform.bind(obj), - release: obj.release.bind(obj), - setPriority: obj.setPriority.bind(obj), - tmpdir: obj.tmpdir.bind(obj), - totalmem: obj.totalmem.bind(obj), - type: obj.type.bind(obj), - uptime: obj.uptime.bind(obj), - userInfo: obj.userInfo.bind(obj), - version: obj.version.bind(obj), - machine: obj.machine.bind(obj), - devNull: obj.devNull, - EOL: obj.EOL, - constants: obj.constants, - [Symbol.for("CommonJS")]: 0, - }; -} - -var os = bound(Bun._Os()); - -export var { - arch, - cpus, - endianness, - freemem, - getPriority, - homedir, - hostname, - loadavg, - networkInterfaces, - platform, - release, - setPriority, - tmpdir, - totalmem, - type, - uptime, - userInfo, - version, - machine, - devNull, - EOL, - constants, -} = os; - -export default os; |