tweak message

pull/16003/head
Rich Harris 4 months ago
parent 5ee00cdeb1
commit 705c03d24e

@ -635,7 +635,7 @@ In some situations a selector may target an element that is not 'visible' to the
### custom_element_props_identifier ### custom_element_props_identifier
``` ```
Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know which props to expose as properties on the DOM element. Consider explicitly destructuring all the props or add the `customElement.props` option. Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.
``` ```
### element_implicitly_closed ### element_implicitly_closed

@ -1,6 +1,6 @@
## custom_element_props_identifier ## custom_element_props_identifier
> Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know which props to expose as properties on the DOM element. Consider explicitly destructuring all the props or add the `customElement.props` option. > Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.
## export_let_unused ## export_let_unused

@ -594,11 +594,11 @@ export function options_renamed_ssr_dom(node) {
} }
/** /**
* Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know which props to expose as properties on the DOM element. Consider explicitly destructuring all the props or add the `customElement.props` option. * Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function custom_element_props_identifier(node) { export function custom_element_props_identifier(node) {
w(node, 'custom_element_props_identifier', `Using an identifier or a rest element as the declarator for \`$props\` when compiling to custom elements without declaring \`props\` in the component options means that Svelte can't know which props to expose as properties on the DOM element. Consider explicitly destructuring all the props or add the \`customElement.props\` option.\nhttps://svelte.dev/e/custom_element_props_identifier`); w(node, 'custom_element_props_identifier', `Using a rest element or a non-destructured declaration with \`$props()\` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the \`customElement.props\` option.\nhttps://svelte.dev/e/custom_element_props_identifier`);
} }
/** /**

@ -17,7 +17,7 @@
"column": 15, "column": 15,
"line": 4 "line": 4
}, },
"message": "Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know which props to expose as properties on the DOM element. Consider explicitly destructuring all the props or add the `customElement.props` option.", "message": "Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know what to expose as properties on the DOM element. Consider explicitly destructuring all the props or adding the `customElement.props` option.",
"start": { "start": {
"column": 7, "column": 7,
"line": 4 "line": 4

@ -17,7 +17,7 @@
"column": 10, "column": 10,
"line": 4 "line": 4
}, },
"message": "Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know which props to expose as properties on the DOM element. Consider explicitly destructuring all the props or add the `customElement.props` option.", "message": "Using an identifier or a rest element as the declarator for `$props` when compiling to custom elements without declaring `props` in the component options means that Svelte can't know what to expose as properties on the DOM element. Consider explicitly destructuring all the props or adding the `customElement.props` option.",
"start": { "start": {
"column": 5, "column": 5,
"line": 4 "line": 4

Loading…
Cancel
Save