wing-ops/frontend/vite.config.ts
htlee 195e69c86d fix(map): ScatMap scatDetailData import 제거 + Vite shimMissingExports 설정
- scatDetailData는 scatConstants에 없는 export — import 제거, seg.id 직접 사용
- deck.gl → @loaders.gl/worker-utils가 Node.js child_process.spawn 참조하나
  브라우저에서 미사용 코드 경로이므로 shimMissingExports: true로 해결

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:04:11 +09:00

22 lines
591 B
TypeScript
Executable File

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@common': path.resolve(__dirname, 'src/common'),
'@tabs': path.resolve(__dirname, 'src/tabs'),
},
},
build: {
rollupOptions: {
// deck.gl → @loaders.gl/worker-utils가 Node.js child_process를 참조하나
// 브라우저에서는 해당 코드 경로를 타지 않으므로 undefined shim 허용
shimMissingExports: true,
},
},
})