Polyfill fetch

Is there a way to use npm api packages that don’t use fetch by polyfilling it in?

Now only if you were to add this to webpack and recommended a plug-in for rollup or just used rollup.