Image dependency dist path #9249
-
I'm working an MDX2 transformer that automatically adds image dependencies, which is working, but I haven't figured out the best option for getting the final image URL. Ideally, I would let the plugins handle the file import as normal. Based on other transformers, it appears that
I'd be happy to pass in my own final path, but I haven't figured out how to do that. The documentation for
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The final path isn't known yet when the transformer runs, that's why that id is returned. The intended way is: just include that id, and then If that doesn't work for you: why do you need the final url in the transformer? |
Beta Was this translation helpful? Give feedback.
The final path isn't known yet when the transformer runs, that's why that id is returned.
The intended way is: just include that id, and then
replaceURLReferences
in the packager (e.g. the html or the raw-url packager) will replace it at the end once the bundle name is known.If that doesn't work for you: why do you need the final url in the transformer?