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>
26 lines
811 B
TypeScript
26 lines
811 B
TypeScript
export declare enum Bundler {
|
|
Turbopack = 0,
|
|
Webpack = 1,
|
|
Rspack = 2
|
|
}
|
|
/**
|
|
* Parse the bundler arguments and potentially sets the `TURBOPACK` environment variable.
|
|
*
|
|
* NOTE: rspack is configured via next config which is chaotic so it is possible for this to be overridden later.
|
|
*
|
|
* @param options The options to parse.
|
|
* @returns The bundler that was configured
|
|
*/
|
|
export declare function parseBundlerArgs(options: {
|
|
turbo?: boolean;
|
|
turbopack?: boolean;
|
|
webpack?: boolean;
|
|
}): Bundler;
|
|
/**
|
|
* Finalize the bundler based on the config.
|
|
*
|
|
* Rspack is configured via next config by setting an environment variable (yay, side effects)
|
|
* so this should only be called after parsing the config.
|
|
*/
|
|
export declare function finalizeBundlerFromConfig(fromOptions: Bundler): Bundler;
|