You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to get source reference for original file imported via text loader (in may case it's *.graphql file), but unfortunately I don't see original source entry in the sources array of generated source map. Do I missing something or it's a bug?
This is intentional behavior in esbuild because it only outputs sourcemaps which are helpful in showing logs (errors, warnings). Basically they (helpful debug points) are the places that could throw errors, like accessing a variable name, accessing a getter, calling a function, etc. That's why it will choose these | places shown below.
I need to get source reference for original file imported via text loader (in may case it's
*.graphql
file), but unfortunately I don't see original source entry in thesources
array of generated source map. Do I missing something or it's a bug?Example of source:
Bundles as expected (with
loader: { '.graphql': 'text' }
option) into (including comment that points to the file properly):but there is no
site.graphql
entries in souce mapsources
array.The text was updated successfully, but these errors were encountered: