Import third party lib in datasource plugin development

I am developing a custom datasource where in I need to import library. I am doing npm install --save in my plugin and using import statement to import io object. However system js is not able to find the library and get the following error:

SimpleJson plugin failed
Error: Fetch error: 404 Not Found Instantiating Loading Loading plugins/grafana-simple-json-datasource/module