File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -193,14 +193,22 @@ export interface TransformAttributeOptions {
193193 * that can be replaced with the final urls later (after bundling).
194194 * Dependencies are returned as part of the result.
195195 */
196- analyzeDependencies ?: boolean
196+ analyzeDependencies ?: boolean ,
197+ /**
198+ * Whether to ignore invalid rules and declarations rather than erroring.
199+ * When enabled, warnings are returned, and the invalid rule or declaration is
200+ * omitted from the output code.
201+ */
202+ errorRecovery ?: boolean
197203}
198204
199205export interface TransformAttributeResult {
200206 /** The transformed code. */
201207 code : Buffer ,
202208 /** `@import` and `url()` dependencies, if enabled. */
203- dependencies : Dependency [ ] | void
209+ dependencies : Dependency [ ] | void ,
210+ /** Warnings that occurred during compilation. */
211+ warnings : Warning [ ]
204212}
205213
206214/**
You can’t perform that action at this time.
0 commit comments