Skip to content

support scripts using module #40

@quinn

Description

@quinn

from mdn docs:

https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript

The Document.currentScript property returns the <script> element whose script is currently being processed and isn't a JavaScript module. (For modules use import.meta instead.)

i'm basically doing:

<script type="module">
	import { thing } from './thing.js';
	thing(me());
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions