mirror of
https://github.com/maputnik/editor.git
synced 2026-02-06 04:30:01 +00:00
23 lines
466 B
TypeScript
23 lines
466 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import replace from '@rollup/plugin-replace';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 8888
|
|
},
|
|
plugins: [
|
|
replace({
|
|
preventAssignment: true,
|
|
include: /\/jsonlint-lines-primitives\/lib\/jsonlint.js/,
|
|
delimiters: ['', ''],
|
|
values: {
|
|
'_token_stack:': ''
|
|
}
|
|
}) as any,
|
|
react()
|
|
],
|
|
define: {
|
|
global: "window",
|
|
},
|
|
}); |