1
- import { InlineConfig } from "vite" ;
2
- import { __DEV__ , resolve as r } from "./utils.mjs" ;
3
- import * as fs from "fs-extra" ;
4
- import react from "@vitejs/plugin-react" ;
5
- import * as packageJson from '../package.json' ;
1
+ import { InlineConfig } from 'vite' ;
2
+ import { resolve as r } from './utils.mjs' ;
3
+ import * as fs from 'fs-extra' ;
4
+ import react from '@vitejs/plugin-react' ;
6
5
7
6
export const config : InlineConfig = {
8
7
envDir : r ( ) ,
@@ -12,11 +11,6 @@ export const config: InlineConfig = {
12
11
events : 'rollup-plugin-node-polyfills/polyfills/events' ,
13
12
} ,
14
13
} ,
15
- define : {
16
- '__DEV__' : __DEV__ ,
17
- '__NAME__' : JSON . stringify ( packageJson . name ) ,
18
- 'process.env.NODE_ENV' : JSON . stringify ( __DEV__ ? 'development' : 'production' ) ,
19
- } ,
20
14
esbuild : { loader : 'jsx' , include : / s r c \/ .* \. j s x ? $ / , exclude : [ ] } ,
21
15
optimizeDeps : {
22
16
esbuildOptions : {
@@ -34,4 +28,4 @@ export const config: InlineConfig = {
34
28
} ,
35
29
} ,
36
30
plugins : [ react ( ) ] ,
37
- }
31
+ } ;
0 commit comments