-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"[ERROR] Invalid define value (must be an entity name or valid JSON syntax)"... when JSON object is the value #71
Comments
if i change this line to: - JSON.parse(val)
+ JSON.parse(val + "INVALID-JSON"); my local setup seems to work fine π€ |
fix: esbuild `define` deep stringify fail (#71)
I appreciate your discovering this issue and providing a fix. However, after testing, it appears that the fix only addresses part of the problem. Currently, the plugin's processing of After testing, this issue and other potential scenarios have been successfully resolved. |
great! thank you very much π i'll test the updated code once it's released π |
tested - works great - thanks again ππππ |
oh. i just noticed that there's a strange log item output now:
seems to be coming from here. in my case, i'm not using websockets so maybe that's causing it? regardless, everything seems to work fine despite the log message suggesting it should not π€·ββοΈ |
yes, i see. I made a mistake. I re-published a minor version to fix it. |
hi there π
thanks for this great tool and apologies for the english here π
with a vite configuring like this:
i get an error:
naively, i think the issue is caused by re-writing the user define entries (here). in cases where the parsed value is an object, esbuild errors.
ideally user defines wouldn't be edited, just passed thru as they were set.
also see: #31
The text was updated successfully, but these errors were encountered: