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 }}
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.
It's important for transformers that generate new files to choose a file name that doesn't collide with existing files or files generated by another transformer that runs on the same phase.
We are not sure how much this will be a problem in the future, but one way to reduce the risk of name collisions would be to provide APIs in barback for this. For example, an API to retrieve a unique string or unique ID corresponding to the current transformer at the current phase. Then the transformers can generate unique assets IDs for generated files by including this unique string somewhere in the path.
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="96" height="96"hspace="10"> Issue by sigmundch
Originally opened as dart-lang/sdk#12618
It's important for transformers that generate new files to choose a file name that doesn't collide with existing files or files generated by another transformer that runs on the same phase.
We are not sure how much this will be a problem in the future, but one way to reduce the risk of name collisions would be to provide APIs in barback for this. For example, an API to retrieve a unique string or unique ID corresponding to the current transformer at the current phase. Then the transformers can generate unique assets IDs for generated files by including this unique string somewhere in the path.
(more context available in the discussions of this CL https://chromiumcodereview.appspot.com/22825012/)
The text was updated successfully, but these errors were encountered: