babel-plugin-jsx/vitest.config.ts
renovate[bot] 1220687593
chore(deps): update all non-major dependencies (#656)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-07-10 14:16:33 +08:00

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',
},
});