The targets system was initially added to reassess code before loading on mobile. It has stayed much longer than expected.
As we embrace Vue and ES6 code I was surprised to see certain code is unintentionally (and intentionally) not being shipped to mobile clients.
We should stop this before it gets out of hand.
To avoid this I recommend:
- we should change the targets behaviour so that it defaults to [ 'desktop', 'mobile' ] for any code that uses ES6
- or packageFiles.
- we will log a warning for any code that intentionally tries to avoid targeting mobile in these circumstances