Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
17 lines
1.3 KiB
TypeScript
17 lines
1.3 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: import("./babel/loader/types").NextBabelLoaderOptionDefaultPresets;
|
|
} | 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: (reactCompilerOptions: boolean | ReactCompilerOptions | undefined, cwd: string, isServer: boolean, reactCompilerExclude: ((excludePath: string) => boolean) | undefined, isDev: boolean) => {
|
|
loader: string;
|
|
options: import("./babel/loader/types").NextBabelLoaderOptionStandalone;
|
|
} | undefined;
|
|
export { getBabelLoader, getReactCompilerLoader };
|