heartbeat-monitor/node_modules/next/dist/build/get-babel-loader-config.d.ts
Matt Bruce bed1169443 Initial commit: Heartbeat Monitor dashboard
- Full-featured monitoring dashboard for local web apps
- Real-time status tracking with uptime percentages
- Visual sparklines for status history
- Add/Edit/Delete apps dynamically
- Categories and color coding
- Auto-refresh every 30 seconds
- API endpoints for apps and status management
2026-02-18 11:16:01 -06:00

30 lines
1.7 KiB
TypeScript

import type { ReactCompilerOptions } from '../server/config-shared';
declare const getBabelLoader: (useSWCLoader: boolean | undefined, babelConfigFile: string | undefined, isServer: boolean, distDir: string, pagesDir: string | undefined, cwd: string, srcDir: string, dev: boolean, isClient: boolean, reactCompilerOptions: boolean | ReactCompilerOptions | undefined, reactCompilerExclude: ((excludePath: string) => boolean) | undefined) => {
loader: string;
options: {
transformMode: string;
configFile: string | undefined;
isServer: boolean;
distDir: string;
pagesDir: string | undefined;
cwd: string;
srcDir: string;
development: boolean;
hasReactRefresh: boolean;
hasJsxRuntime: boolean;
reactCompilerPlugins: (string | {
compilationMode?: "infer" | "annotation" | "all";
panicThreshold: string | undefined;
})[][] | undefined;
reactCompilerExclude: ((excludePath: string) => boolean) | undefined;
};
} | undefined;
/**
* Get a separate babel loader for the react compiler, only used if Babel is not
* configured through e.g. .babelrc. If user have babel config, this should be configured in the babel loader itself.
* Note from react compiler:
* > For best results, compiler must run as the first plugin in your Babel pipeline so it receives input as close to the original source as possible.
*/
declare const getReactCompilerLoader: (options: boolean | ReactCompilerOptions | undefined, cwd: string, isDev: boolean, isServer: boolean, reactCompilerExclude: ((excludePath: string) => boolean) | undefined) => any;
export { getBabelLoader, getReactCompilerLoader };