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
{{ message }}
Repository navigation
Loader docs return value for source from transform? #35
In the section above in the table for formats, it has a column called
Acceptable types For source returned by resolve or load
This leads me to believe that resolve somehow would be capable of returning source but I think it is not? Is this an error in the docs or have I misunderstood something?
It should probably say acceptable values for format; @JakobJingleheimer ?
@GeoffreyBooth the 3rd column is indeed types for source. That table is saying when format is foo, source can be bar. I'm not sure how much value the table provides (it existed before though) as in most circumstances, the choice is made for you.
Acceptable types For source returned by ~resolve or ~load
Yes! resolve does not return a source property. Thank you for the catch @jonaskello. PR incoming.
Activity
GeoffreyBooth commentedon Sep 25, 2021
It should probably say acceptable values for
format; @JakobJingleheimer ?jonaskello commentedon Sep 25, 2021
The format is specified in the first column so I think it the resolve part should just be removed?
Acceptable types For source returned by
resolve orloadJakobJingleheimer commentedon Sep 27, 2021
@GeoffreyBooth the 3rd column is indeed types for
source. That table is saying whenformatis foo,sourcecan be bar. I'm not sure how much value the table provides (it existed before though) as in most circumstances, the choice is made for you.Yes!
resolvedoes not return asourceproperty. Thank you for the catch @jonaskello. PR incoming.JakobJingleheimer commentedon Sep 27, 2021
nodejs/node#40234