ice/packages/plugin-jsx-plus
ClarkXia 2199147b04
chore: update versions (#6939)
2024-07-25 10:27:46 +08:00
..
src fix: allow decorators-legacy syntax in js file (#6935) 2024-07-08 19:29:54 +08:00
tests fix(jsx-plus): transform w/ parent is a <></> (#6418) 2023-08-25 13:26:05 +08:00
CHANGELOG.md chore: update versions (#6939) 2024-07-25 10:27:46 +08:00
README.md chore: optimize (#676) 2022-11-15 10:33:11 +08:00
package.json chore: update versions (#6939) 2024-07-25 10:27:46 +08:00
tsconfig.json feat: plugin jsx plus (#529) 2022-11-15 10:32:39 +08:00

README.md

@ice/plugin-jsx-plus

This plugin adds support for JSX+ syntax to the ice.js.

Definition of JSX Plus

https://github.com/jsx-plus/jsx-plus

Usage

import { defineConfig } from '@ice/app';
import jsxplus from '@ice/plugin-jsx-plus';

export default defineConfig(() => ({
  plugins: [
    jsxplus({
      // options
    }),
  ],
}));

Options

  • include: (string | RegExp)[]
    • Files to be included.
    • Default: the project src directory.
  • exclude: (string | RegExp)[]
    • Files to be excluded.
    • Default: []
  • extensions: string[]
    • File extensions to be processed.
    • Default: ['.jsx', '.tsx']

If include and exclude are both set, exclude will be priority executed.