Skip to content

support tsx parsing #164

Open
Open
@thescientist13

Description

Summary

Currently WCC can handle .jsx and .ts file independtly, but not at the same time. Let's change that!

Details

So basically someone could a component like

interface User {
  name: string;
}

export default class Greeting extends HTMLElement {
  connectedCallback() {
    this.user: User = {
      name: this.getAttribute('name') || 'World'
    };

    this.render();
  }

  render() {
    const { name } = this;

    return (<h3>Hello ${user.name}! 👋</h3>)
  }
}

customElements.define('x-greeting', Greeting);

Metadata

Assignees

No one assigned

    Labels

    JSXfeatureNew feature or request

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions