Files
scrap/node_modules/next/dist/build/webpack/loaders/next-swc-loader.d.ts
2024-09-24 03:52:46 +00:00

22 lines
721 B
TypeScript

import type { NextConfig } from '../../../../types';
import type { WebpackLayerName } from '../../../lib/constants';
export interface SWCLoaderOptions {
rootDir: string;
isServer: boolean;
pagesDir?: string;
appDir?: string;
hasReactRefresh: boolean;
optimizeServerReact?: boolean;
nextConfig: NextConfig;
jsConfig: any;
supportedBrowsers: string[] | undefined;
swcCacheDir: string;
serverComponents?: boolean;
bundleLayer?: WebpackLayerName;
esm?: boolean;
transpilePackages?: string[];
}
export declare function pitch(this: any): void;
export default function swcLoader(this: any, inputSource: string, inputSourceMap: any): void;
export declare const raw = true;