next-swc-loader-patch.d.ts 621 B

123456789101112131415161718192021
  1. import { NextConfig } from 'next';
  2. interface SWCLoaderOptions {
  3. rootDir: string;
  4. isServer: boolean;
  5. pagesDir?: string;
  6. appDir?: string;
  7. hasReactRefresh: boolean;
  8. optimizeServerReact?: boolean;
  9. nextConfig: NextConfig;
  10. jsConfig: any;
  11. supportedBrowsers: string[] | undefined;
  12. swcCacheDir: string;
  13. serverComponents?: boolean;
  14. isReactServerLayer?: boolean;
  15. }
  16. declare function pitch(this: any): void;
  17. declare function swcLoader(this: any, inputSource: string, inputSourceMap: any): void;
  18. declare const raw = true;
  19. export { SWCLoaderOptions, swcLoader as default, pitch, raw };