I have an Aurelia project that still uses the old CLI + requirejs. I understand that Aurelia has some restrictions on minification, as the bindings are all name/property based.
Nevertheless this generates a very readable code. And in my project I have a lot of classes that doesn’t use Aurelia at all.
Is it possible to have 2 separate bundles, one with the Aurelia/bindable classes and one with “pure” typescript classes and apply a stronger minification in the later?
If not, would another solution be to create a separate (npm? typescript?) package with the non-Aurelia code and reference it in my application. But, does this implies in compiling the project twice, (the non-Aurelia + the Aurelia) during development time?
Thanks in advance for your thoughts,