The only difference between my project and the demo is that my project uses typescript + angular and the plugin demo is plain typescript.
All of my webpack config is default and the project builds fine if i don't include the plugin. It also builds fine if i don't use the webpack --bundle flag.
Why has require("nativescript-worker-loader!./android-worker.js"); been changed to require("nativescript-download-progress!./android-worker.js");
I created a plugin for a project which uses a worker script on android: https://github.com/tobydeh/nativescript-download-progress
I tried to build the project with webpack which caused issues with the plugin.
I updated my plugin & demo to support webpack and everything runs correctly.
When I use the plugin in my project i get the following build error:
The only difference between my project and the demo is that my project uses typescript + angular and the plugin demo is plain typescript.
All of my webpack config is default and the project builds fine if i don't include the plugin. It also builds fine if i don't use the webpack --bundle flag.
Why has
require("nativescript-worker-loader!./android-worker.js");
been changed torequire("nativescript-download-progress!./android-worker.js");