
mutated is true if the value's properties are assigned to inside the component.module is true if the value is declared in a context="module" script.
Red alarm expression code#
injected is true if the declaration is injected by Svelte, rather than in the code you wrote.export_name is the name the value is exported as, if it is exported (will match name unless you do export.as).vars is an array of the component's declarations, used by eslint-plugin-svelte3 for example.frame, if applicable, is a string highlighting the offending code with line numbers.
start and end, if the warning relates to a specific location, are objects with line, column and character properties. message describes the issue in human-readable terms. code is a string identifying the category of warning. warnings is an array of warning objects that were generated during compilation. ast is an abstract syntax tree representing the structure of your component. map is a sourcemap with additional toString() and toUrl() convenience methods. js and css are objects with the following properties:. The namespace of the element e.g., "mathml", "svg", "foreign". Any imports from svelte or svelte/ will be modified accordingly. By default, this is true.Ī string used for your JavaScript sourcemap. Use an object with js or css for more granular control of sourcemap generation. If true, Svelte generate sourcemaps for components. This is usually the preprocessor sourcemap. If true, whitespace inside and between elements is kept as you typed it, rather than removed or collapsed to a single space where possible.Īn initial sourcemap that will be merged into the final output sourcemap. If true, your HTML comments will be preserved during server-side rendering. This is useful to prevent infinite loops. Store = Ī number that tells Svelte to break the loop if it blocks the thread for more than loopGuardTimeout ms.