wtr-plugin-vite
Vite plugin for WebTestRunner
npm i wtr-plugin-vite
|
pnpm add wtr-plugin-vite
|
yarn add wtr-plugin-vite
|
Examples
# node
# view source
example/node.ts
const { vite } = require('wtr-plugin-vite')
module.exports = {
plugins: [vite()],
}
API
vite(viteConfig) =>
- {
string#
name
= 'vite-plugin'
Credits
- @babel/core by The Babel Team – Babel compiler core.
- @babel/plugin-transform-react-jsx by The Babel Team – Turn JSX into React function calls
- @babel/plugin-transform-typescript by The Babel Team – Transform TypeScript into ES.next
- @originjs/vite-plugin-commonjs by jiawulin – A vite plugin that support commonjs to esm in vite
- vite by Evan You – Native-ESM powered web dev build tool
- vite-plugin-babel-dev by Miłosz Mandowski – Runs babel during dev serve in Vite
Contributing
All contributions are welcome!