Solid Labels

Simple, reactive labels for SolidJS
Alternatives To Solid Labels
Select To Compare


Readme

banner

NPM JavaScript Style Guide

Example

Install

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

Features

  • Labels: Turn labels into SolidJS utility calls!
  • Comments: Turn comments into SolidJS utility calls, too!
  • Compile-time Functions: Use functions that are evaluated during compile-time!
  • Auto Imports: No need to import SolidJS utilities, explicitly!
  • JS and TS Friendly!

Usage

Typescript

<any file>.d.ts

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

Babel

.babelrc

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

NOTE: 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

  • Detecting shadowed identifier for signal and memo.

Sponsors

Sponsors

License

MIT lxsmnsyc

Popular Compilers Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Typescript
Babel Plugin