import and type="module"

Created on 14 July 2024, 5 months ago
Updated 25 July 2024, 5 months ago

The import declaration is not working because the generated <script></script> by asset_injector is missing the type="module" for it to work.

Console gives error: SyntaxError: import declarations may only appear at top level of a module

Code example e.g.
import * as kampos from "https://cdn.skypack.dev/kampos@0.5.1";

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇱🇹Lithuania vibrasphere

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024