Closed vasiliicuhar closed 5 months ago
Interesting, must have broken on some new version of vite? Last I checked, you still had to define string constants like so '"some text"'
, and JSON.stringify
did that for you...
That and skipping the final comma seen to be the only changes?
This PR updates serializeDefine to latest version from vite. It fixes compilation errors when define contains string values.
For some unknown reasons it's not working only in combination with @vitejs/plugin-react, however, the issue is with
(${val})
syntax, that esbuild doesn't accept.Environment
Sample config