adding target to the build in config

This commit is contained in:
csawatzky 2025-05-08 12:40:13 -06:00
parent 6556e09941
commit fc4057536c
4 changed files with 296 additions and 332 deletions

2
.env
View file

@ -21,5 +21,3 @@ VITE_APP_WEBSITE_TITLE="Adaptive Dashboard"
VITE_APP_PRIMARY_COLOUR=blue
VITE_APP_SECONDARY_COLOUR=blueGrey
VITE_APP_SIGNATURE_COLOUR="#323232"
SKIP_PREFLIGHT_CHECK=true

620
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -40,7 +40,6 @@
"@turf/area": "^7.2.0",
"@turf/turf": "^7.2.0",
"@types/classnames": "^2.3.0",
"@types/mapbox-gl": "^3.4.1",
"axios": "^1.7.7",
"dayjs": "^1.11.13",
"deep-object-diff": "^1.1.9",
@ -81,6 +80,7 @@
"@types/lodash": "^4.17.13",
"@types/mapbox__mapbox-gl-draw": "^1.4.8",
"@types/mapbox__mapbox-gl-geocoder": "^5.0.0",
"@types/mapbox-gl": "^3.4.1",
"@types/react": "^18.3.10",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/react-color": "^3.0.13",

View file

@ -22,8 +22,10 @@ export default defineConfig({
outDir: './build',
sourcemap: true,
minify: false,
target: 'esnext'
},
esbuild: {
keepNames: true, // Prevent function name mangling
}
},
})