1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@vue/babel-preset-jsx
zhurui 54669c07cf i4 2023-12-18 13:12:25 +08:00
..
dist i4 2023-12-18 13:12:25 +08:00
README.md i4 2023-12-18 13:12:25 +08:00
package.json i4 2023-12-18 13:12:25 +08:00

README.md

@vue/babel-preset-jsx

Configurable preset for Vue JSX plugins.

Babel Compatibility Notes

Usage

Install the dependencies:

# for yarn:
yarn add @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props
# for npm:
npm install @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props --save

In your .babelrc:

{
  "presets": ["@vue/babel-preset-jsx"]
}

You can toggle specific features, by default all features are enabled, e.g.:

{
  "presets": [
    [
      "@vue/babel-preset-jsx",
      {
        "vModel": false
      }
    ]
  ]
}

Options are: