@lwc/babel-plugin-component
    TypeScript icon, indicating that this package has built-in type declarations

    2.3.0 • Public • Published

    @lwc/babel-plugin-component

    This babel plugin does the following transform:

    • Global decorator transform:
      • Transform @api decorator to publicProperties and publicMethods static properties.
      • Transform @wire decorator to wire static property.
      • Transform @track decorator to track static property.
    • LWC component class sugar syntax:
      • Check for misspelled lifecycle hooks.
      • Import and inject render from a collocated template if a component class doesn't already implement a render method.
    • Optimization:
      • If the compiler inject the default template a component, it will also wire the template style to the component.

    Keywords

    none

    Install

    npm i @lwc/babel-plugin-component

    Homepage

    lwc.dev/

    DownloadsWeekly Downloads

    21,744

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    54 kB

    Total Files

    19

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar