We now want to return to the first error we encountered when bundling our app which was:
ERROR in Unexpected value SlimSliderDirective in /path/to/TNSStudio/app/modules/player/directives/slider.directive.d.ts declared by the module PlayerModule in /path/to/TNSStudio/app/modules/player/player.module.ts. Please add a @Pipe/@Directive/@Component annotation.
A solution for this error did not exist at the time of writing this book, so we created the nativescript-webpack-import-replace (https://github.com/NathanWalker/nativescript-webpack-import-replace) plugin to solve the problem.
Developing a webpack plugin in detail is out of the scope of this book, but we wanted to give you some highlights ...