From 56f42f13a0e7fcd178540952ed4fd8ba88610a6c Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Mon, 14 Dec 2020 13:17:39 -0500 Subject: [PATCH 1/2] feat: add support for additional node.js builtin modules --- lib/node/NodeTargetPlugin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/node/NodeTargetPlugin.js b/lib/node/NodeTargetPlugin.js index 13165fc8727..c5f7961c104 100644 --- a/lib/node/NodeTargetPlugin.js +++ b/lib/node/NodeTargetPlugin.js @@ -20,6 +20,7 @@ const builtins = [ "crypto", "dgram", "dns", + "dns/promises", "domain", "events", "fs", @@ -39,9 +40,11 @@ const builtins = [ "readline", "repl", "stream", + "stream/promises", "string_decoder", "sys", "timers", + "timers/promises", "tls", "trace_events", "tty", @@ -49,6 +52,7 @@ const builtins = [ "util", "v8", "vm", + "wasi", "worker_threads", "zlib" ]; From 16833c33a004f603d45054cb1a4816a3fa14dd1a Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Mon, 14 Dec 2020 13:30:18 -0500 Subject: [PATCH 2/2] fix spell checker (wasi) --- lib/node/NodeTargetPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node/NodeTargetPlugin.js b/lib/node/NodeTargetPlugin.js index c5f7961c104..5abd5cfbfc0 100644 --- a/lib/node/NodeTargetPlugin.js +++ b/lib/node/NodeTargetPlugin.js @@ -52,7 +52,7 @@ const builtins = [ "util", "v8", "vm", - "wasi", + "wasi", // cSpell:ignore wasi "worker_threads", "zlib" ];