Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Command (mark with an
x)Description
Currently it is possible to have a configuration which uses JIT compilation and attempts to run build optimizer on the results. This doesn't really work and isn't supported, leading to awkward error messages, which can be confusing to users (see #17663).
Describe the solution you'd like
Ideally, the CLI would detect this case and error out if an import for
@angular/compileris found in user code with build optimizer enabled. We should display a more precise warning/error about this case to better explain to the users why JIT + build optimizer doesn't work and what they can to do fix it.Describe alternatives you've considered
Currently this is a runtime error with a poor message.