Skip to content

Commit 4f80ab6

Browse files
authored
fix: allow warningFilter option for compileModule (#14066)
fixes #14012
1 parent ca58039 commit 4f80ab6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/curvy-melons-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: allow `warningFilter` option for `compileModule`

packages/svelte/src/compiler/validate-options.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ const common = {
3131
}
3232

3333
return input;
34-
})
34+
}),
35+
36+
warningFilter: fun(() => true)
3537
};
3638

3739
export const validate_module_options =
@@ -106,8 +108,6 @@ export const validate_component_options =
106108

107109
hmr: boolean(false),
108110

109-
warningFilter: fun(() => true),
110-
111111
sourcemap: validator(undefined, (input) => {
112112
// Source maps can take on a variety of values, including string, JSON, map objects from magic-string and source-map,
113113
// so there's no good way to check type validity here

0 commit comments

Comments
 (0)