Skip to content

Commit 3a0c4a7

Browse files
authored
Do not warn about missing unused css selectors if both css and emitCss are false (#127)
1 parent f7e5eec commit 3a0c4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ module.exports = function svelte(options = {}) {
265265
if (major_version >= 3) warnings = compiled.warnings || compiled.stats.warnings;
266266

267267
warnings.forEach(warning => {
268-
if ((options.css || !options.emitCss) && warning.code === 'css-unused-selector') return;
268+
if ((!options.css && !options.emitCss) && warning.code === 'css-unused-selector') return;
269269

270270
if (options.onwarn) {
271271
options.onwarn(warning, warning => this.warn(warning));

0 commit comments

Comments
 (0)