@vue/babel-plugin-jsx

  • Version 1.2.5
  • Published
  • 80.3 kB
  • 10 dependencies
  • MIT license

Install

npm i @vue/babel-plugin-jsx
yarn add @vue/babel-plugin-jsx
pnpm add @vue/babel-plugin-jsx

Overview

Babel plugin for Vue 3 JSX

Index

Functions

function _default

_default: (
api: object,
options: VueJSXPluginOptions | null | undefined,
dirname: string
) => BabelCore.PluginObj<State>;

    Interfaces

    interface VueJSXPluginOptions

    interface VueJSXPluginOptions {}

      property enableObjectSlots

      enableObjectSlots?: boolean;
      • enable object slots syntax

      property isCustomElement

      isCustomElement?: (tag: string) => boolean;
      • configuring custom elements

      property mergeProps

      mergeProps?: boolean;
      • merge static and dynamic class / style attributes / onXXX handlers

      property optimize

      optimize?: boolean;
      • enable optimization or not.

      property pragma

      pragma?: string;
      • Replace the function used when compiling JSX expressions

      property resolveType

      resolveType?: Options | boolean;
      • (**Experimental**) Infer component metadata from types (e.g. props, emits, name) false

      property transformOn

      transformOn?: boolean;
      • transform on: { click: xx } to onClick: xxx

      Package Files (1)

      Dependencies (10)

      Dev Dependencies (8)

      Peer Dependencies (1)

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@vue/babel-plugin-jsx.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@vue/babel-plugin-jsx)
      • HTML
        <a href="https://www.jsdocs.io/package/@vue/babel-plugin-jsx"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>