Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-kirei

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-kirei

babel-plugin-kirei ==========================

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

babel-plugin-kirei

GitHub Workflow Status Codecov Codacy grade Codacy coverage npm (scoped) npm bundle size (scoped) npm bundle size (scoped)

Babel plugin for Kirei to instrument Kirei components to add Hot Module Replacement

Installation

npm i -D babel-plugin-kirei

or if you use yarn

yarn add -D babel-plugin-kirei

API

import babelPlugin from 'babel-plugin-kirei';

babelPlugin( [ opts ] )

Creates the Babel plugin from a set of optional plugin options.

Returns: Babel Plugin

Parameters:

  • opts {KireiPluginOptions} - Object of optional options to pass to the plugin
    • include {string|string[]} - Optional string or array of strings of glob patterns to include
    • exclude {string|string[]} - Optional string or array of strings of glob patterns to exclude
    • extension {string|string[]} - Optional string or array of strings of extensions to include (dot prefixed like .js or .ts)

Examples

To use this plugin define it using vite.config.js


// vite.config.js
const kirei = require('babel-plugin-kirei');

module.exports = {
  open: true,
  port: 3000,
  plugins: [
    kirei({
      include: 'src/*',
      exclude: [/node_modules/, 'test/'],
      extension: [ '.js', '.ts' ],
    }),
  ],
};

Testing (TODO: not yet finished)

npm run test

License

MIT

Keywords

FAQs

Package last updated on 19 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc