@sveltejs/kit
Version:
SvelteKit is the fastest way to build Svelte apps
140 lines (122 loc) • 5.92 kB
JavaScript
/* This file is generated by scripts/process-messages/index.js. Do not edit! */
import { warn } from './internal/build.js';
/**
* Reading `config.kit` inside adapters is deprecated — it should access configuration on the `config` object directly. You may need to update your adapter
* @param {void} _values
*/
export function adapter_config_kit_deprecated(_values) {
warn('adapter_config_kit_deprecated', `Reading \`config.kit\` inside adapters is deprecated — it should access configuration on the \`config\` object directly. You may need to update your adapter`);
}
/**
* Overwriting `%file%` with fallback page. Consider using a different name for the fallback.
* @param {{ "file": string }} _values
*/
export function adapter_fallback_overwrites(_values) {
warn('adapter_fallback_overwrites', `Overwriting \`${_values.file}\` with fallback page. Consider using a different name for the fallback.`);
}
/**
* No adapter specified. See https://svelte.dev/docs/kit/adapters to learn how to configure your app to run on the platform of your choosing
* @param {void} _values
*/
export function adapter_missing(_values) {
warn('adapter_missing', `No adapter specified. See https://svelte.dev/docs/kit/adapters to learn how to configure your app to run on the platform of your choosing`);
}
/**
* The `%keypath%` option is deprecated, and will be removed in a future version
* @param {{ "keypath": string }} _values
*/
export function config_option_deprecated(_values) {
warn('config_option_deprecated', `The \`${_values.keypath}\` option is deprecated, and will be removed in a future version`);
}
/**
* The `%keypath%` option is deprecated, and will be removed in a future version of SvelteKit. Use subpath imports instead: https://svelte.dev/docs/kit/$lib
* @param {{ "keypath": string }} _values
*/
export function config_option_deprecated_alias(_values) {
warn('config_option_deprecated_alias', `The \`${_values.keypath}\` option is deprecated, and will be removed in a future version of SvelteKit. Use subpath imports instead: https://svelte.dev/docs/kit/$lib`);
}
/**
* The `%keypath%` option is deprecated, and will be removed in a future version. Add configuration to `tsconfig.json` directly
* @param {{ "keypath": string }} _values
*/
export function config_option_deprecated_typescript(_values) {
warn('config_option_deprecated_typescript', `The \`${_values.keypath}\` option is deprecated, and will be removed in a future version. Add configuration to \`tsconfig.json\` directly`);
}
/**
* `OPTIONS` request handlers will not work unless `%key%.preflightContinue` is set to `true`
* @param {{ "key": string }} _values
*/
export function cors_preflight_continue(_values) {
warn('cors_preflight_continue', `\`OPTIONS\` request handlers will not work unless \`${_values.key}.preflightContinue\` is set to \`true\``);
}
/**
* %description%. Did you mean %corrected%? at %file%
* @param {{ "description": string; "corrected": string; "file": string }} _values
*/
export function file_name_misspelled(_values) {
warn('file_name_misspelled', `${_values.description}. Did you mean ${_values.corrected}? at ${_values.file}`);
}
/**
* `%file%`: `<slot />` or `{@render ...}` tag missing — inner content will not be rendered
* @param {{ "file": string }} _values
*/
export function layout_children_missing(_values) {
warn('layout_children_missing', `\`${_values.file}\`: \`<slot />\` or \`{@render ...}\` tag missing — inner content will not be rendered`);
}
/**
* `%file%`: `%option%` will be ignored — move it to `%fixed%` instead. See https://svelte.dev/docs/kit/page-options for more information.
* @param {{ "file": string; "option": string; "fixed": string }} _values
*/
export function page_option_in_component(_values) {
warn('page_option_in_component', `\`${_values.file}\`: \`${_values.option}\` will be ignored — move it to \`${_values.fixed}\` instead. See https://svelte.dev/docs/kit/page-options for more information.`);
}
/**
* `location` header missing on redirect received from `%path%`
* @param {{ "path": string }} _values
*/
export function prerender_redirect_location_missing(_values) {
warn('prerender_redirect_location_missing', `\`location\` header missing on redirect received from \`${_values.path}\``);
}
/**
* Missing route file prefix. Did you mean %corrected%? at %file%
* @param {{ "corrected": string; "file": string }} _values
*/
export function route_file_prefix_missing(_values) {
warn('route_file_prefix_missing', `Missing route file prefix. Did you mean ${_values.corrected}? at ${_values.file}`);
}
/**
* The following plugins may not work correctly because they use the `transformIndexHtml` hook which is not supported:
%plugins%
* @param {{ "plugins": string }} _values
*/
export function transform_index_html_unsupported(_values) {
warn('transform_index_html_unsupported', `The following plugins may not work correctly because they use the \`transformIndexHtml\` hook which is not supported:
${_values.plugins}`);
}
/**
* `%file%` should extend SvelteKit's built-in configuration:
%example%
* @param {{ "file": string; "example": string }} _values
*/
export function tsconfig_extends_missing(_values) {
warn('tsconfig_extends_missing', `\`${_values.file}\` should extend SvelteKit's built-in configuration:
${_values.example}`);
}
/**
* Found issues while validating `%file%`:
%issues%
* @param {{ "file": string; "issues": string }} _values
*/
export function tsconfig_invalid(_values) {
warn('tsconfig_invalid', `Found issues while validating \`${_values.file}\`:
${_values.issues}`);
}
/**
* The following Vite config options will be overridden by SvelteKit:
%options%
* @param {{ "options": string }} _values
*/
export function vite_config_overridden(_values) {
warn('vite_config_overridden', `The following Vite config options will be overridden by SvelteKit:
${_values.options}`);
}