You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A script tag with a relativesrc path like <script src="./test.js"></script>
gets compiled into <script src="[CONTENTS OF test.js]"></script>
NOTE: That does not happen with absolute paths: /js/script.js or full URLs
Expected Behavior
Marko does nothing and the script tag remains "as is". I was caught totally by surprise that Marko/Run was doing anything at all with something I considered "plain html".
Ok, nothing in Marko is plain HTML... but usually boundaries and side effects are clear. In this case, I don't know what's going on here.
How to reproduce:
Create a new Run project
Create a src/routes/test.js file
exportdefault"the script content";
Add <script src="./test.js"></script> to +layout.marko
Build
This is easier to see when using the static adapter...