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();` асинхронный, к слову
this might help I think https://github.com/vanilla-extract-css/vanilla-extract/blob/6c65b4836cbc2db344524d7b613c9e445d87ea38/packages/webpack-plugin/src/loader.ts#L122
https://github.com/mui/material-ui/tree/master/packages/pigment-css-react#start-with-nextjs 👀
That is beyond the responsibility of the library
same in apex legends (win11, 9700x, rtx 3080)