mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-21 04:43:16 +00:00
version 0.2.0
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
import { readFileSync } from "fs";
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
const pkg = JSON.parse(
|
||||
readFileSync(new URL("./package.json", import.meta.url), "utf-8"),
|
||||
);
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 3000,
|
||||
},
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(pkg.version),
|
||||
},
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
setupFiles: "./src/setupTests.js",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user