diff --git a/src/htmx.js b/src/htmx.js index c48e67e3..79d54618 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -1431,7 +1431,7 @@ return (function () { } function evalScript(script) { - if (script.type === "text/javascript" || script.type === "") { + if (script.type === "text/javascript" || script.type === "module" || script.type === "") { var newScript = getDocument().createElement("script"); forEach(script.attributes, function (attr) { newScript.setAttribute(attr.name, attr.value);