fix: allow `warningFilter` option for `compileModule` (#14066)

fixes #14012
pull/14067/head
Simon H 5 days ago committed by GitHub
parent ca58039e3e
commit 4f80ab6da6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: allow `warningFilter` option for `compileModule`

@ -31,7 +31,9 @@ const common = {
}
return input;
})
}),
warningFilter: fun(() => true)
};
export const validate_module_options =
@ -106,8 +108,6 @@ export const validate_component_options =
hmr: boolean(false),
warningFilter: fun(() => true),
sourcemap: validator(undefined, (input) => {
// Source maps can take on a variety of values, including string, JSON, map objects from magic-string and source-map,
// so there's no good way to check type validity here

Loading…
Cancel
Save