Skip to content

Commit 58ffb68

Browse files
feat: emit @warning as webpack warning (#1054)
BREAKING CHANGES: emit `@warn` at-rules as webpack warnings (only for `dart-sass` and `sass-embedded`), behaviour can be changed using the `warnRuleAsWarning` option
1 parent 06d7533 commit 58ffb68

File tree

4 files changed

+467
-405
lines changed

4 files changed

+467
-405
lines changed

src/utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,7 @@ async function getSassOptions(
153153
: content;
154154

155155
if (!options.logger) {
156-
// TODO set me to `true` by default in the next major release
157-
const needEmitWarning = loaderOptions.warnRuleAsWarning === true;
158-
156+
const needEmitWarning = loaderOptions.warnRuleAsWarning !== false;
159157
const logger = loaderContext.getLogger("sass-loader");
160158
const formatSpan = (span) =>
161159
`${span.url || "-"}:${span.start.line}:${span.start.column}: `;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy