ice/packages/plugin-jsx-plus
ClarkXia fbeaf932cb
chore: update versions (#6509)
2023-09-14 10:58:37 +08:00
..
src fix: import path of types and runtime (#5981) 2023-02-28 15:08:10 +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 (#6509) 2023-09-14 10:58:37 +08:00
README.md chore: optimize (#676) 2022-11-15 10:33:11 +08:00
package.json chore: update versions (#6509) 2023-09-14 10:58:37 +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.