We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8d009e commit f34984bCopy full SHA for f34984b
packages/experience/vite.config.ts
@@ -27,6 +27,10 @@ const buildConfig = (mode: string): UserConfig => ({
27
viteCompression({ disable: mode === 'development', algorithm: 'brotliCompress' }),
28
],
29
define: {
30
+ // TODO: Remove this line after the experience package supports ESM unit test.
31
+ // Replace all the process.env references with import.meta.env in the experience package then.
32
+ // 'import.meta.env.DEV_FEATURES_ENABLED': JSON.stringify(process.env.DEV_FEATURES_ENABLED),
33
+
34
// Experience package does not support ESM unit test yet, can not use import.meta.env
35
// so we need to define the environment variables here.
36
'process.env': {
0 commit comments