mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
0cf5511ae0
This PR adds a new option errorMode to CompileOptions to allow continuing the compilation process when errors occured. When set to warn, this new option will indicate to Svelte that it should log errors as warnings and continue compilation. This allows (notably) preprocessors to compile the markup to detect vars in markup before preprocessing (in this case: script and style tags are stripped so it can produce a lot of errors). This PR is part of a work on the svelte-preprocess side to improve the preprocessing of TypeScript files: https://github.com/sveltejs/svelte-preprocess/issues/318 - allow compiler to pass error as warnings - enforce stops after errors during compilation (for type-checking, TS doesn't know the error method throws) - should review Element.ts:302 - added a test case for errorMode - added documentation |
||
---|---|---|
.. | ||
samples | ||
index.ts |