File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 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';
1212import { ensureLastSlash } from "./src/dev-utils/util" ;
1313import { buildVars } from "./src/dev-utils/buildVars" ;
1414import { globalDepPlugin } from "./src/dev-utils/globalDepPlguin" ;
15- import { nodePolyfills } from 'vite-plugin-node-polyfills'
15+ // import { nodePolyfills } from 'vite-plugin-node-polyfills'
1616
1717dotenv . config ( ) ;
1818
1919const 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 ;
2121const nodeEnv = process . env . NODE_ENV ?? "development" ;
2222const isDev = nodeEnv === "development" ;
2323const isVisualizerEnabled = ! ! process . env . ENABLE_VISUALIZER ;
@@ -110,6 +110,10 @@ export const viteConfig: UserConfig = {
110110 javascriptEnabled : true ,
111111 } ,
112112 } ,
113+ modules : {
114+ // Configuration for CSS modules
115+ scopeBehaviour : 'local' // Ensures CSS modules are scoped locally by default
116+ }
113117 } ,
114118 server : {
115119 open : true ,
@@ -158,7 +162,7 @@ export const viteConfig: UserConfig = {
158162 } ) ,
159163 isVisualizerEnabled && visualizer ( ) ,
160164 dynamicImport ( ) ,
161- nodePolyfills ( { include : [ 'process' ] } ) ,
165+ ( { include : [ 'process' ] } ) ,
162166 ] . filter ( Boolean ) ,
163167} ;
164168
You can’t perform that action at this time.
0 commit comments