Skip to content

Commit

Permalink
fix: allow warningFilter option for compileModule (#14066)
Browse files Browse the repository at this point in the history
fixes #14012
  • Loading branch information
dummdidumm authored Oct 31, 2024
1 parent ca58039 commit 4f80ab6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-melons-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: allow `warningFilter` option for `compileModule`
6 changes: 3 additions & 3 deletions packages/svelte/src/compiler/validate-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const common = {
}

return input;
})
}),

warningFilter: fun(() => true)
};

export const validate_module_options =
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4f80ab6

Please sign in to comment.