mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-07-03 10:33:24 +08:00
refactor: upgrade project setup (#646)
This commit is contained in:
22
vitest.config.ts
Normal file
22
vitest.config.ts
Normal file
@ -0,0 +1,22 @@
|
||||
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',
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user