This PR adds a script that will generate a script, based on the browserslist configuration. The generated script can be used to determine if a useragent string should be served the modern or the legacy code bundles. This script will be generated as a part of the bundle:npm build script, and will be included in the published npm package for each site. This will allow websites using these packages to utilize the generated script.
Fixes #1158
This PR adds a script that will generate a script, based on the browserslist configuration. The generated script can be used to determine if a useragent string should be served the modern or the legacy code bundles. This script will be generated as a part of the
bundle:npm
build script, and will be included in the published npm package for each site. This will allow websites using these packages to utilize the generated script.