-
Notifications
You must be signed in to change notification settings - Fork 12.8k
An option to enforce emitting order #12881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The only thing you need to do to get this behavior is not have I'm also a little confused on |
Please note that we have a bug where the order of files listed in |
This might be a case of the In my case I had
Once I moved Unfortunately I am unable to get this to happen for me in a minimal example, making me think something else is also going on. But the reality is that the output order was not the same as the import order in |
use |
I do see the behaviour of #11461 with that command. I don't seem to be able to replicate my "fix" for the output, though. Might have been a hallucination on my part. If the |
I know I can control the order of files via the ordering provided in my config (either in
files
orinclude
). But since things like types can change ordering so that even if we havefiles:['a.ts', 'b.ts']
, then the resulting output will haveb.ts
's compiled output first (see here)Would it be possible to add a compiler flag so that we can enforce that
a.ts
doesn't pull inb.ts
? To enforce the ordering provided infiles
orinclude
? I tried looking into doing this myself but this project's quite big. Something like a compiler error when trying to pull in a file that is "after" the current file in the include order.Ideally, being able to make it so that if I have:
include: [ "library/*", "core/*", "ui/*" ]
then files within
library/*
could depend on each other but not on things incore/*
, andcore/*
could not depend on anything inui/*
(but could depend on things incore/*
orlib/*
). This would already help to solve many of my ordering-related headaches which mean I cannot use things like theimport
statement safely.The text was updated successfully, but these errors were encountered: