-
Is it possible to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi Stephen! Would you share a small example or repo where you are using this pattern with Webpacker? The
For example, if you are relying on side-effects in the script but had previously imported it, the browser wouldn't execute it again the second time it's referenced.
Another reason for the script not executing would be the use of As @scmyers11 points out in the comment below, this seems to be the related to the lack of support for |
Beta Was this translation helpful? Give feedback.
Hi Stephen!
Would you share a small example or repo where you are using this pattern with Webpacker?
The
vite_javascript_tag
renders ascript
tag—the only difference is that the scripttype
ismodule
.For example, if you are relying on side-effects in the script but had previously imported it, the browser wouldn't execute it again the second time it's referenced.
Another reason for the script not executing would be the use of
innerHTML
to inject the script.As @scmyers11 points out in the comment below, this seems…