/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v26.1.0
lib/module.js
38 строк
1 KB
Chengzhong Wu
lib: allow skipping source maps in node_modules
24 янв 2025, 01:44
Не верифицирован
24 янв 2025, 01:44
b11ee4c
Код
Авторство
О чём код?
'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.getCompileCacheDir = getCompileCacheDir; Module.stripTypeScriptTypes = stripTypeScriptTypes; // SourceMap APIs Module.findSourceMap = findSourceMap; Module.SourceMap = SourceMap; Module.getSourceMapsSupport = getSourceMapsSupport; Module.setSourceMapsSupport = setSourceMapsSupport; module.exports = Module;