mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
[node] Add more fs constants (#144)
Move fs constants to node_fs_constants.zig, and we static append the constants definition to fs.export.js. Issue: #130
This commit is contained in:
@@ -1065,7 +1065,7 @@ pub const VirtualMachine = struct {
|
||||
} else if (strings.eqlComptime(_specifier, "node:fs")) {
|
||||
return ResolvedSource{
|
||||
.allocator = null,
|
||||
.source_code = ZigString.init(@embedFile("fs.exports.js")),
|
||||
.source_code = ZigString.init(@embedFile("fs.exports.js") ++ JSC.Node.fs.constants_string),
|
||||
.specifier = ZigString.init("node:fs"),
|
||||
.source_url = ZigString.init("node:fs"),
|
||||
.hash = 0,
|
||||
|
||||
Reference in New Issue
Block a user