mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-06-10 00:34:23 +08:00
* update frontend-components and build new plotly and table html assets * codespell for some reason * too-many-positional-arguments
23 lines
530 B
TypeScript
Vendored
23 lines
530 B
TypeScript
Vendored
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
import { viteSingleFile } from "vite-plugin-singlefile";
|
|
|
|
const stripUseClientDirective = () => {
|
|
return {
|
|
name: 'strip-use-client',
|
|
transform(code) {
|
|
if (code.includes('use client')) {
|
|
return {
|
|
code: code.replace(/"use client"/, ''),
|
|
map: null
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), stripUseClientDirective(), viteSingleFile()],
|
|
});
|