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

2.41.2 • 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

58,553

Version

2.41.2

License

MIT

Unpacked Size

54.5 kB

Total Files

21

Last publish

Collaborators

  • divmain
  • lwc-admin
  • caridy
  • tbliss
  • pmdartus
  • ekashida
  • kevinv11n
  • jye-sf
  • rui.qiu
  • ravi.jayaramappa
  • jodarove
  • abdulsattar
  • nolanlawson
  • jmsjtu