Files
editor/vite.config.ts
T
Harel M fadf01a51d Remove jsonlint build hack (#1987)
## Launch Checklist

This removes the jsonlint build hack that was used for a long time due
to json lint part of the style spec package that was missing a fix.
This is now no longer needed with the latest style spec package.

 - [x] Briefly describe the changes in this PR.
2026-07-07 20:27:43 +00:00

26 lines
545 B
TypeScript

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import istanbul from "vite-plugin-istanbul";
export default defineConfig(({ mode }) => ({
server: {
port: 8888,
},
build: {
sourcemap: true
},
plugins: [
react(),
istanbul({
cypress: true,
requireEnv: false,
nycrcPath: "./.nycrc.json",
forceBuildInstrument: true, //Instrument the source code for cypress runs
}),
],
base: mode === "desktop" ? "/" : "/maputnik/",
define: {
global: "window"
},
}));