Defining global variable replacements in 'optimizeDeps' looks not correct. #2893
Closed
6 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
My config file. I set a optimizeDeps and define. But the
GLOBAL_VAR
is replaced differently when I useGLOBAL_VAR
in the module included byoptimizeDeps
and it looks not correct (it still be quoted after replaced).Reproduction
The codesandbox can reproduce the problem: https://codesandbox.io/s/vite-define-ior1b?file=/src/main.jsx
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: yarn
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: