/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ext/node/polyfills/path/mod.ts
67 строк
1 KB
Nathan Whitaker
perf: lazy-load more modules in the snapshot (#34061)
19 май 2026, 02:37
Не верифицирован
19 май 2026, 02:37
eb4061f
Код
Авторство
О чём код?
// Copyright the Browserify authors. MIT License. // Ported mostly from https://github.com/browserify/path-browserify/ // Copyright 2018-2026 the Deno authors. MIT license. (function () { const { core } = __bootstrap; const { isWindows } = core.loadExtScript("ext:deno_node/_util/os.ts"); const _win32 = core.loadExtScript("ext:deno_node/path/_win32.ts").default; const _posix = core.loadExtScript("ext:deno_node/path/_posix.ts").default; const win32 = { ..._win32, win32: null, posix: null, }; const posix = { ..._posix, win32: null, posix: null, }; posix.win32 = win32.win32 = win32; posix.posix = win32.posix = posix; const path = isWindows ? win32 : posix; const { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, parse, relative, resolve, sep, toNamespacedPath, _makeLong, matchesGlob, } = path; const { common } = core.loadExtScript("ext:deno_node/path/common.ts"); return { win32, posix, basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, parse, relative, resolve, sep, toNamespacedPath, _makeLong, matchesGlob, common, default: path, }; })();