babel-plugin-metal-register-components

1.0.1 • Public • Published

babel-plugin-metal-register-components

A babel plugin for Metal.js that automatically registers components.

Usage

This is a babel plugin automatically registers Component classes. Helps avoid the boilerplate of doing it manually for each component. To use it, just add it to your package.json and pass it as a plugin when calling babel:

{
  "plugins": ["metal-register-components"]
}

Note that gulp-metal already includes this plugin by default on build tasks. So there's no need to add it manually if you're using it.

/babel-plugin-metal-register-components/

    Package Sidebar

    Install

    npm i babel-plugin-metal-register-components

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • mairatma