/opt/canhelp/node_modules/next/dist/build/analysis
NameSizeModeActions
extract-const-value.d.ts8330644editdlrm
extract-const-value.js68640644editdlrm
extract-const-value.js.map117600644editdlrm
get-page-static-info.d.ts36670644editdlrm
get-page-static-info.js220870644editdlrm
get-page-static-info.js.map330660644editdlrm
parse-module.d.ts2290644editdlrm
parse-module.js7340644editdlrm
parse-module.js.map11330644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/build/analysis/extract-const-value.d.ts (833B)
import type { Module } from '@swc/core'; export declare class NoSuchDeclarationError extends Error { } export declare class UnsupportedValueError extends Error { /** @example `config.runtime[0].value` */ path?: string; constructor(message: string, paths?: string[]); } /** * Extracts the value of an exported const variable named `exportedName` * (e.g. "export const config = { runtime: 'edge' }") from swc's AST. * The value must be one of (or throws UnsupportedValueError): * - string * - boolean * - number * - null * - undefined * - array containing values listed in this list * - object containing values listed in this list * * Throws NoSuchDeclarationError if the declaration is not found. */ export declare function extractExportedConstValue(module: Module, exportedName: string): any;