mirror of
https://github.com/denoland/deno.git
synced 2025-08-31 15:57:53 +00:00
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
This commit is contained in:
parent
d24c6ea27f
commit
72fe9bb470
293 changed files with 1509 additions and 1632 deletions
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||
"use strict";
|
||||
|
||||
import { Buffer } from "internal:deno_node/buffer.ts";
|
||||
import { Buffer } from "ext:deno_node/buffer.ts";
|
||||
import {
|
||||
ERR_FS_EISDIR,
|
||||
ERR_FS_INVALID_SYMLINK_TYPE,
|
||||
|
@ -10,17 +10,17 @@ import {
|
|||
ERR_OUT_OF_RANGE,
|
||||
hideStackFrames,
|
||||
uvException,
|
||||
} from "internal:deno_node/internal/errors.ts";
|
||||
} from "ext:deno_node/internal/errors.ts";
|
||||
|
||||
import {
|
||||
isArrayBufferView,
|
||||
isBigUint64Array,
|
||||
isDate,
|
||||
isUint8Array,
|
||||
} from "internal:deno_node/internal/util/types.ts";
|
||||
import { once } from "internal:deno_node/internal/util.mjs";
|
||||
import { deprecate } from "internal:deno_node/util.ts";
|
||||
import { toPathIfFileURL } from "internal:deno_node/internal/url.ts";
|
||||
} from "ext:deno_node/internal/util/types.ts";
|
||||
import { once } from "ext:deno_node/internal/util.mjs";
|
||||
import { deprecate } from "ext:deno_node/util.ts";
|
||||
import { toPathIfFileURL } from "ext:deno_node/internal/url.ts";
|
||||
import {
|
||||
validateAbortSignal,
|
||||
validateBoolean,
|
||||
|
@ -29,20 +29,20 @@ import {
|
|||
validateInteger,
|
||||
validateObject,
|
||||
validateUint32,
|
||||
} from "internal:deno_node/internal/validators.mjs";
|
||||
import pathModule from "internal:deno_node/path.ts";
|
||||
} from "ext:deno_node/internal/validators.mjs";
|
||||
import pathModule from "ext:deno_node/path.ts";
|
||||
const kType = Symbol("type");
|
||||
const kStats = Symbol("stats");
|
||||
import assert from "internal:deno_node/internal/assert.mjs";
|
||||
import { lstat, lstatSync } from "internal:deno_node/_fs/_fs_lstat.ts";
|
||||
import { stat, statSync } from "internal:deno_node/_fs/_fs_stat.ts";
|
||||
import { isWindows } from "internal:deno_node/_util/os.ts";
|
||||
import process from "internal:deno_node/process.ts";
|
||||
import assert from "ext:deno_node/internal/assert.mjs";
|
||||
import { lstat, lstatSync } from "ext:deno_node/_fs/_fs_lstat.ts";
|
||||
import { stat, statSync } from "ext:deno_node/_fs/_fs_stat.ts";
|
||||
import { isWindows } from "ext:deno_node/_util/os.ts";
|
||||
import process from "ext:deno_node/process.ts";
|
||||
|
||||
import {
|
||||
fs as fsConstants,
|
||||
os as osConstants,
|
||||
} from "internal:deno_node/internal_binding/constants.ts";
|
||||
} from "ext:deno_node/internal_binding/constants.ts";
|
||||
const {
|
||||
F_OK = 0,
|
||||
W_OK = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue