From 72fe9bb47005e720444e65a66e91559287137780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 8 Mar 2023 07:44:54 -0400 Subject: refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041) This commit renames "deno_core::InternalModuleLoader" to "ExtModuleLoader" and changes the specifiers used by the modules loaded from this loader to "ext:". "internal:" scheme was really ambiguous and it's more characters than "ext:", which should result in slightly smaller snapshot size. Closes https://github.com/denoland/deno/issues/18020 --- ext/node/polyfills/internal_binding/stream_wrap.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/node/polyfills/internal_binding/stream_wrap.ts') diff --git a/ext/node/polyfills/internal_binding/stream_wrap.ts b/ext/node/polyfills/internal_binding/stream_wrap.ts index 1f7d9f6c5..40c72bb8f 100644 --- a/ext/node/polyfills/internal_binding/stream_wrap.ts +++ b/ext/node/polyfills/internal_binding/stream_wrap.ts @@ -27,15 +27,15 @@ // - https://github.com/nodejs/node/blob/master/src/stream_wrap.h // - https://github.com/nodejs/node/blob/master/src/stream_wrap.cc -import { TextEncoder } from "internal:deno_web/08_text_encoding.js"; -import { Buffer } from "internal:deno_node/buffer.ts"; -import { notImplemented } from "internal:deno_node/_utils.ts"; -import { HandleWrap } from "internal:deno_node/internal_binding/handle_wrap.ts"; +import { TextEncoder } from "ext:deno_web/08_text_encoding.js"; +import { Buffer } from "ext:deno_node/buffer.ts"; +import { notImplemented } from "ext:deno_node/_utils.ts"; +import { HandleWrap } from "ext:deno_node/internal_binding/handle_wrap.ts"; import { AsyncWrap, providerType, -} from "internal:deno_node/internal_binding/async_wrap.ts"; -import { codeMap } from "internal:deno_node/internal_binding/uv.ts"; +} from "ext:deno_node/internal_binding/async_wrap.ts"; +import { codeMap } from "ext:deno_node/internal_binding/uv.ts"; interface Reader { read(p: Uint8Array): Promise; -- cgit v1.2.3