mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
1220687593
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
26 lines
525 B
TypeScript
26 lines
525 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { babel } from '@rollup/plugin-babel';
|
|
import Jsx from './packages/babel-plugin-jsx/src';
|
|
|
|
export default defineConfig({
|
|
esbuild: {
|
|
jsx: 'preserve',
|
|
},
|
|
plugins: [
|
|
babel({
|
|
babelHelpers: 'bundled',
|
|
extensions: ['.tsx', '.jsx'],
|
|
plugins: [
|
|
[
|
|
Jsx,
|
|
{ optimize: true, isCustomElement: (tag: string) => /^x-/.test(tag) },
|
|
],
|
|
],
|
|
}),
|
|
],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
},
|
|
});
|