diff --git a/CHANGELOG.md b/CHANGELOG.md index e21eda25af4..3f9bd6196ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Svelte changelog +## Unreleased + +* Do not emit deprecation warnings for `css` compiler options for now ([#8009](https://github.com/sveltejs/svelte/issues/8009)) + ## 3.53.0 * Check whether `parentNode` exists before removing child ([#6037](https://github.com/sveltejs/svelte/issues/6037)) diff --git a/src/compiler/compile/index.ts b/src/compiler/compile/index.ts index 38a3da057cf..7a18231cef9 100644 --- a/src/compiler/compile/index.ts +++ b/src/compiler/compile/index.ts @@ -89,13 +89,15 @@ function validate_options(options: CompileOptions, warnings: Warning[]) { if (css === true || css === false) { options.css = css === true ? 'injected' : 'external'; - const message = `options.css as a boolean is deprecated. Use '${options.css}' instead of ${css}.`; - warnings.push({ - code: 'options-css-boolean-deprecated', - message, - filename, - toString: () => message - }); + // possibly show this warning once we decided how Svelte 4 looks like + // const message = `options.css as a boolean is deprecated. Use '${options.css}' instead of ${css}.`; + // warnings.push({ + // code: 'options-css-boolean-deprecated', + // message, + // filename, + // toString: () => message + // }); + // } } if (namespace && valid_namespaces.indexOf(namespace) === -1) {