Only Load JS Files for Polyfills (#9628)
Only Load JS Files for Polyfills (#9628)

* Adding native-url package

* Bumping native-url version

* Upgrading native-url

* Logging stats object for debugging

* Logging stats object for debugging

* Adding try catch to the error lines

* Experimenting with regex

* Experimenting with regex

* Experimenting with regex

* Testing regex changes

* Fixing defer-script test case to not include polyfill.js

* Meging changes with existing polyfill work

* Bumping version

* adjust webpack config

* Reduce size in size test

* Remove 1kb from legacy

* Bumping native-url version, includes fix for IE11

* Update lock file

* Updating native-url, fixes issue on IE11

* Fix sourcemap being added in document

flybayer/next.js,flybayer/next.js,JeromeFitz/next.js,zeit/next.js,azukaru/next.js,flybayer/next.js,JeromeFitz/next.js,azukaru/next.js,JeromeFitz/next.js,flybayer/next.js,azukaru/next.js,azukaru/next.js,zeit/next.js,zeit/next.js,JeromeFitz/next.js