mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-12-12 16:38:56 +08:00
refactor: lint
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import { babel } from '@rollup/plugin-babel'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import Jsx from './packages/babel-plugin-jsx/src'
|
||||
|
||||
export default defineConfig({
|
||||
@@ -16,7 +16,10 @@ export default defineConfig({
|
||||
plugins: [
|
||||
[
|
||||
Jsx,
|
||||
{ optimize: true, isCustomElement: (tag: string) => /^x-/.test(tag) },
|
||||
{
|
||||
optimize: true,
|
||||
isCustomElement: (tag: string) => tag.startsWith('x-'),
|
||||
},
|
||||
],
|
||||
],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user