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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Hardcoded module "node:path"
export const createModule = obj => Object.assign(Object.create(null), obj);
function bound(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,
});
result.default = result;
return result;
}
var path = bound(Bun._Path());
export var posix = bound(Bun._Path(false));
export var win32 = bound(Bun._Path(true));
path.win32 = win32;
path.posix = posix;
export var {
basename,
dirname,
extname,
format,
isAbsolute,
join,
normalize,
parse,
relative,
resolve,
toNamespacedPath,
sep,
delimiter,
__esModule,
} = path;
path[Symbol.for("CommonJS")] = 0;
path.__esModule = true;
export default path;
|