Hi Vinutha,
The generator for Pluggable widget uses webpack
https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-one
Feel free to use webpack for you dojo widget too.
A sample https://github.com/Andries-Smit/clippy
Cheers,
Andries