Skip to content

custom_element_props_identifier warnings should not be triggered for internally imported components #16011

Closed as not planned
@JetLua

Description

@JetLua
<!-- A.svelte -->
<svelte:options customElement={{
  tag: 'a-btn',
  props: {
    name: {type: 'String'},
  }
}}/>

<script lang="ts">
  import B from './B.svelte'
  const props: {name: string} = $props()

</script>

<B name={props.name}/>
<!-- B.svelte -->

<script lang="ts">
  const props: {name: string} = $props()
</script>

<button>{props.name}</button>

Perhaps a trigger warning shouldn't be issued for file B.svelte.

https://stackblitz.com/edit/vitejs-vite-1tpdpcqa?file=src%2FB.svelte

image

Originally posted by @JetLua in #16003 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions