Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/hackmud-script-manager. Script manager for game hackmud, with minification, TypeScrip www.npmjs.com/package/hackmud-script-manager
Something went wrong. Try again.
hackmud-script-manager vitest.config.ts
1234567891011121314151617181920import type { ViteUserConfig } from "vitest/config"// @ts-expect-error it does exist, it just doesn't have typingsimport babelPluginSyntaxTypescript from "@babel/plugin-syntax-typescript"import { babel } from "@rollup/plugin-babel"import { babelPluginHere } from "babel-plugin-here"
export default { test: { includeSource: [ `src/**/*.ts` ] }, plugins: [ { ...babel({ babelHelpers: `bundled`, extensions: [ `.ts` ], plugins: [ babelPluginSyntaxTypescript, babelPluginHere() ] }) as any, enforce: `pre` } ]} satisfies ViteUserConfig