Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add --compat flag to provide built-in Node modules #12293

Merged
merged 13 commits into from
Oct 4, 2021
Prev Previous commit
Next Next commit
add support for promises modules
  • Loading branch information
bartlomieju committed Oct 2, 2021
commit d1ccdf3d854ec610d90da7f35e5d01a23043f7df
8 changes: 8 additions & 0 deletions cli/compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,34 @@ static DENO_STD_URL: &str = "https://deno.land/std/node/";

static SUPPORTED_MODULES: &[&str] = &[
"assert",
"assert/strict",
"buffer",
"child_process",
"console",
"constants",
"crypto",
"events",
"fs",
"fs/promises",
"module",
"os",
"path",
"path/posix",
"path/win32",
"perf_hooks",
"process",
"querystring",
"stream",
"stream/promises",
"stream/web",
"string_decoder",
"sys",
"timers",
"timers/promises",
"tty",
"url",
"util",
"util/types",
];

pub fn get_mapped_node_builtins() -> HashMap<String, String> {
Expand Down