diff options
author | 2023-06-01 21:16:47 -0400 | |
---|---|---|
committer | 2023-06-01 18:16:47 -0700 | |
commit | 4df1d37ddc54242c339765f22fb90ba2e9e3a99a (patch) | |
tree | d63ede76463e7ecba78a4d4b31e5e8158193552f /src/js/out/modules_dev/node/path.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/js/out/modules_dev/node/path.js')
-rw-r--r-- | src/js/out/modules_dev/node/path.js | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/js/out/modules_dev/node/path.js b/src/js/out/modules_dev/node/path.js new file mode 100644 index 000000000..7ccb32f0a --- /dev/null +++ b/src/js/out/modules_dev/node/path.js @@ -0,0 +1,61 @@ +var bound = function(obj) { + var result = createModule({ + basename: obj.basename.bind(obj), + dirname: obj.dirname.bind(obj), + extname: obj.extname.bind(obj), + format: obj.format.bind(obj), + isAbsolute: obj.isAbsolute.bind(obj), + join: obj.join.bind(obj), + normalize: obj.normalize.bind(obj), + parse: obj.parse.bind(obj), + relative: obj.relative.bind(obj), + resolve: obj.resolve.bind(obj), + toNamespacedPath: obj.toNamespacedPath.bind(obj), + sep: obj.sep, + delimiter: obj.delimiter + }); + return result.default = result, result; +}, createModule = (obj) => Object.assign(Object.create(null), obj), path = bound(Bun._Path()), posix = bound(Bun._Path(!1)), win32 = bound(Bun._Path(!0)); +path.win32 = win32; +path.posix = posix; +var { + basename, + dirname, + extname, + format, + isAbsolute, + join, + normalize, + parse, + relative, + resolve, + toNamespacedPath, + sep, + delimiter, + __esModule +} = path; +path[Symbol.for("CommonJS")] = 0; +path.__esModule = !0; +var path_default = path; +export { + win32, + toNamespacedPath, + sep, + resolve, + relative, + posix, + parse, + normalize, + join, + isAbsolute, + format, + extname, + dirname, + delimiter, + path_default as default, + createModule, + basename, + __esModule +}; + +//# debugId=036C77302B4E5C6F64756e2164756e21 |