Skip to content

Commit

Permalink
fix "export declarations may only appear at top level of a module"
Browse files Browse the repository at this point in the history
  • Loading branch information
dennishendriksen committed Nov 4, 2024
1 parent db3a2cd commit 0be4c37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function decodeScript(script: HTMLScriptElement): void {
const className = script.className;
if (className === "ldr-js") {
element = doc.createElement("script");
element.setAttribute("type", "module");
} else if (className === "ldr-css") {
element = doc.createElement("style");
} else {
Expand Down

0 comments on commit 0be4c37

Please sign in to comment.