File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import dynamicImport from 'vite-plugin-dynamic-import';
12
12
import { ensureLastSlash } from "./src/dev-utils/util" ;
13
13
import { buildVars } from "./src/dev-utils/buildVars" ;
14
14
import { globalDepPlugin } from "./src/dev-utils/globalDepPlguin" ;
15
- import { nodePolyfills } from 'vite-plugin-node-polyfills'
15
+ // import { nodePolyfills } from 'vite-plugin-node-polyfills'
16
16
17
17
dotenv . config ( ) ;
18
18
19
19
const apiProxyTarget = process . env . LOWCODER_API_SERVICE_URL ;
20
- const nodeServiceApiProxyTarget = process . env . NODE_SERVICE_API_PROXY_TARGET ;
20
+ const nodeServiceApiProxyTarget = process . env . LOWCODER_NODE_SERVICE_URL ;
21
21
const nodeEnv = process . env . NODE_ENV ?? "development" ;
22
22
const isDev = nodeEnv === "development" ;
23
23
const isVisualizerEnabled = ! ! process . env . ENABLE_VISUALIZER ;
@@ -110,6 +110,10 @@ export const viteConfig: UserConfig = {
110
110
javascriptEnabled : true ,
111
111
} ,
112
112
} ,
113
+ modules : {
114
+ // Configuration for CSS modules
115
+ scopeBehaviour : 'local' // Ensures CSS modules are scoped locally by default
116
+ }
113
117
} ,
114
118
server : {
115
119
open : true ,
@@ -158,7 +162,7 @@ export const viteConfig: UserConfig = {
158
162
} ) ,
159
163
isVisualizerEnabled && visualizer ( ) ,
160
164
dynamicImport ( ) ,
161
- nodePolyfills ( { include : [ 'process' ] } ) ,
165
+ ( { include : [ 'process' ] } ) ,
162
166
] . filter ( Boolean ) ,
163
167
} ;
164
168
You can’t perform that action at this time.
0 commit comments