Packing js script into SPA

To reduce network dances I’d want to pack piwik js file into SPA (webpack is in use). Are there drawbacks on the way?