|
|
@ -89,13 +89,15 @@ function validate_options(options: CompileOptions, warnings: Warning[]) {
|
|
|
|
|
|
|
|
|
|
|
|
if (css === true || css === false) {
|
|
|
|
if (css === true || css === false) {
|
|
|
|
options.css = css === true ? 'injected' : 'external';
|
|
|
|
options.css = css === true ? 'injected' : 'external';
|
|
|
|
const message = `options.css as a boolean is deprecated. Use '${options.css}' instead of ${css}.`;
|
|
|
|
// possibly show this warning once we decided how Svelte 4 looks like
|
|
|
|
warnings.push({
|
|
|
|
// const message = `options.css as a boolean is deprecated. Use '${options.css}' instead of ${css}.`;
|
|
|
|
code: 'options-css-boolean-deprecated',
|
|
|
|
// warnings.push({
|
|
|
|
message,
|
|
|
|
// code: 'options-css-boolean-deprecated',
|
|
|
|
filename,
|
|
|
|
// message,
|
|
|
|
toString: () => message
|
|
|
|
// filename,
|
|
|
|
});
|
|
|
|
// toString: () => message
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (namespace && valid_namespaces.indexOf(namespace) === -1) {
|
|
|
|
if (namespace && valid_namespaces.indexOf(namespace) === -1) {
|
|
|
|