I have a script meant to be imported in the browser. It can be used in two ways, either as a regular <script src="..."> or as an ES module.
I would like it to behave differently depending on whether it was imported or loaded as a <script>.
Is it possible to detect either at runtime?