gatsby-plugin-image does not take baseUrl option from jsconfig.json #30700
Unanswered
lnikell
asked this question in
Ideas / Feature Requests
Replies: 1 comment 1 reply
-
We're unlikely to add this, because the component doesn't use module resolution at all. The idea is to be as simple as possible, so it uses filesystem paths and nothing else. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The Gatsby default configuration works well with jsconfig.json and baseUrl option such as this
So you don't need to write always relative paths and can use
components/my-example
paths.We tried to migrate to Gatsby V3 and wanted to use paths to previously default root
images
(as of v2), but we don't wan't to write relative paths to those images such as "../../../images/example.png" and want to use advantages of jsconfig.json and baseUrl and have an option to write just "images/example.png".Expected behavior
gatsby-plugin-image should be aware of baseUrl configuration and load images accordingly.
Beta Was this translation helpful? Give feedback.
All reactions