mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 17:49:16 +08:00
23 lines
486 B
TypeScript
23 lines
486 B
TypeScript
|
import { defineConfig } from 'vitest/config';
|
||
|
import { babel } from '@rollup/plugin-babel';
|
||
|
import Jsx from './packages/babel-plugin-jsx/src';
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
babel({
|
||
|
babelHelpers: 'bundled',
|
||
|
extensions: ['.tsx', '.jsx'],
|
||
|
plugins: [
|
||
|
[
|
||
|
Jsx,
|
||
|
{ optimize: true, isCustomElement: (tag: string) => /^x-/.test(tag) },
|
||
|
],
|
||
|
],
|
||
|
}),
|
||
|
],
|
||
|
test: {
|
||
|
globals: true,
|
||
|
environment: 'jsdom',
|
||
|
},
|
||
|
});
|