This package basically allows us to clone a git repository without its underlying commit history. In the code snippet above, we import the transition functions we'll be using. Already on GitHub? @nrgapple here : alex3165/react-mapbox-gl#795. But I found a way to do it: Just import the file inside a svelte component: // MyComponent.svelte <script> import "public/lib/jwplayer.js" window.jwplayer ().setup () // <-- During import of jwplayer.js // this object gets assigned to the //global window object. Install the rollup plugin to process CSS files. "Error: 'target' is a required option" when running imported function from `