insightful commentary from software addicts...
NativeScript Playground/Preview Limitations
- tns preview --bundle
By using the **--bundle** command, it will use webpack to pack your source code and then those 100% pure JS plugins will be transmitted to the app in one of the two bundles it generates.
The second way (if you don't want to use webpack, or webpack is breaking something in your app) is to basically install the plugins into a different folder that will be synced via the preview function.
- Change to your "app/" directory (main directory that contains the app.js / app.ts file)
- npm i --save
(\*) - It is possible that a 100% JS plugin won't work on Android. Any plugins that actually requires the SBG (Static Binding Generator) to generate compiled Java code from the JS code can't work; as the Preview app has no ability to use any additional compiled code.