This repository has been archived on 2026-05-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
novarix-networks-homepage/node_modules/next/dist/build/babel/loader/get-config.d.ts
T
Kismet Hasanaj 34dc9aec52 .
2026-05-02 20:07:02 +02:00

21 lines
849 B
TypeScript

import type { NextBabelLoaderOptions, NextJsLoaderContext } from './types';
import { type SourceMap, type BabelLoaderTransformOptions } from './util';
/**
* An internal (non-exported) type used by babel.
*/
export type ResolvedBabelConfig = {
options: BabelLoaderTransformOptions;
passes: BabelPluginPasses;
externalDependencies: ReadonlyArray<string>;
};
export type BabelPlugin = unknown;
export type BabelPluginPassList = ReadonlyArray<BabelPlugin>;
export type BabelPluginPasses = ReadonlyArray<BabelPluginPassList>;
export default function getConfig(ctx: NextJsLoaderContext, { source, target, loaderOptions, filename, inputSourceMap, }: {
source: string;
loaderOptions: NextBabelLoaderOptions;
target: string;
filename: string;
inputSourceMap?: SourceMap | undefined;
}): Promise<ResolvedBabelConfig | null>;