Ilya
Ilya
maybe add native support for this and add option?
but __dirname and __filename have a specification: - https://nodejs.org/api/modules.html#modules_dirname - https://nodejs.org/api/modules.html#modules_filename can implement it if target is a node?
``import.media.url`` also doesn't work correctly
https://phuoc.ng/collection/tips/avoid-using-default-exports/#re-exporting
```ts import { Icon } from "leaflet"; import MarkerIcon2X from "leaflet/dist/images/marker-icon-2x.png"; import MarkerIcon from "leaflet/dist/images/marker-icon.png"; import MarkerShadow from "leaflet/dist/images/marker-shadow.png"; Icon.Default.mergeOptions({ iconRetinaUrl: MarkerIcon2X.src, iconUrl: MarkerIcon.src, shadowUrl: MarkerShadow.src, }); ```
`context.loadMessagePayload();` асинхронный, к слову