lxsmnsyc / solid-labels

Simple, reactive labels for SolidJS
MIT License
243 stars 8 forks source link
babel-plugin solid-js

solid-labels

NPM JavaScript Style Guide

Example

Install

npm install solid-labels
yarn add solid-labels
pnpm add solid-labels

Features

Usage

Typescript

<any file>.d.ts

/// <reference types="solid-labels" />

Babel

.babelrc

{
  "plugins": [
    ["solid-labels/babel", { "dev": false }]
  ]
}

[!INFO]: You don't have to use this if you're using Vite or Rollup plugins

Integrations

Disabling features

You can disable some features by passing disabled option to the plugin options.

{
  disabled: {
    labels: {
      signal: true,
    },
    pragma: {
      '@signal': true,
    },
    ctf: {
      $signal: true,
    },
  }
}

Limitations

Sponsors

Sponsors

License

MIT Ā© lxsmnsyc