I have an autogenerated TypeScript file, that only exports an array of 65,000 small objects. The auto-generation is done on an ad-hoc basis, but the compilation is done each time the project is built. Since most of the build-time is spent on compiling this particular file, I would like to optimise it a bid.
This optimisation is primarily a good idea since the file is only being changed 1-3 times a year. Some other parts depend on this file, so I do not think I am able not to compile it.
Is it possible to somehow not compile a file, if it has not been changed, while still being able to reference it?