-
I'm trying to create a plugin similar to html where additional dependencies are added based on the contents of the entry files. But my plugin works off of Is there a way to get a list of the files that were specified to parcel, either through |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That is currently not possible in a transformer, I guess because these entry files could also be imported by something else in your project, so the cases are actually "entry", "entry but also imported", and "imported". Resolvers do have access to this information ( |
Beta Was this translation helpful? Give feedback.
That is currently not possible in a transformer, I guess because these entry files could also be imported by something else in your project, so the cases are actually "entry", "entry but also imported", and "imported".
Resolvers do have access to this information (
dependency.sourcePath == null
if it's an entry). The question is how you then forward this from the resolver to a transformer. Maybe withquery
which is then available in the transformer asasset.query
.