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
Currently dart2js within pub only treats files as entry points if they have a main() method in that file, this misses cases where the main is from an exported lib and where the main is in a part.
The text was updated successfully, but these errors were encountered:
Right now we determine whether a file is an entrypoint in [isPrimary], which has advantages in terms of logging and quickly determining the transformer graph. Fixing this would mean that entrypoint detection would need access to secondary inputs, and thus couldn't occur in [isPrimary].
One possibility is that [isPrimary] considers any Dart file with an export or part statement to be primary and then does further checking in [apply].
Currently dart2js within pub only treats files as entry points if they have a main() method in that file, this misses cases where the main is from an exported lib and where the main is in a part.
The text was updated successfully, but these errors were encountered: