Skip to content

Commit f34984b

Browse files
committed
chore: add some comments
add some comments
1 parent a8d009e commit f34984b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/experience/vite.config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ const buildConfig = (mode: string): UserConfig => ({
2727
viteCompression({ disable: mode === 'development', algorithm: 'brotliCompress' }),
2828
],
2929
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+
3034
// Experience package does not support ESM unit test yet, can not use import.meta.env
3135
// so we need to define the environment variables here.
3236
'process.env': {

0 commit comments

Comments
 (0)