/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v22.23.2
lib/module.js
38 строк
1 KB
Chengzhong Wu
lib: allow skipping source maps in node_modules
06 фев 2025, 03:10
Не верифицирован
06 фев 2025, 03:10
d5bf3db
Код
Авторство
О чём код?
'use strict'; const { findSourceMap, getSourceMapsSupport, setSourceMapsSupport, } = require('internal/source_map/source_map_cache'); const { Module } = require('internal/modules/cjs/loader'); const { register } = require('internal/modules/esm/loader'); const { SourceMap, } = require('internal/source_map/source_map'); const { constants, enableCompileCache, flushCompileCache, getCompileCacheDir, } = require('internal/modules/helpers'); const { findPackageJSON, } = require('internal/modules/package_json_reader'); const { stripTypeScriptTypes } = require('internal/modules/typescript'); Module.register = register; Module.constants = constants; Module.enableCompileCache = enableCompileCache; Module.findPackageJSON = findPackageJSON; Module.flushCompileCache = flushCompileCache; Module.stripTypeScriptTypes = stripTypeScriptTypes; Module.getCompileCacheDir = getCompileCacheDir; // SourceMap APIs Module.findSourceMap = findSourceMap; Module.SourceMap = SourceMap; Module.getSourceMapsSupport = getSourceMapsSupport; Module.setSourceMapsSupport = setSourceMapsSupport; module.exports = Module;