Support developing plugin in individual files

Building output of plugin based on script.js would be better if the build phase supported importing multiple individual files in script.js.
For instance, if I write my code in difference file and import it in script.js, when I run npm run build --plugin=myplugin the output doesn’t include all code from difference file, but only has a line like import x from difference-file.js.