Does the Solid compiler convert JSX to template variables? Know anything about this issue here?
Hi y'all! Does the Solid compiler have anything to do with converting JSX to a template variable in JS?
var _tmpl$ = template(...)
?
This library I'm using seems to be facing an issue where when it's deployed to npm, it loses the quotes in the template. For instance:
<div class="sonner-loading"/>
becomes div class=sonner-loading/>
But locally, it's actually fine after doing pnpm run build
Most of my investigation was diffing, but I honestly can't pinpoint what's causing this issue:
https://github.com/wobsoriano/solid-sonner/issues/14GitHub
[Bug] Loading icon doesn't show when installed from npm · Issue #14...
Hi @wobsoriano ! So I recently made a PR for toast.loading. I'll just preface that this bug is not related to that. I think there's something wrong with how the files are being bundled into...
2 Replies
The package used to compile solid JSX is called dom-expressions.
Thanks for pointing me in the right direction @Alex Lohr! I can see in the source code that it has very similar lines of code to the bug I'm seeing in the issue:
Ah right, I've also learned just now that you can optionally write quotes in html for a single class.