Skip to content

feat: only report major browser version [#1232]

The old info module architecture uses a "virtual" import, meaning that imported module didn't exist at runtime, but only at build time. This causes several issues, especially because of failing module resolution.

This MR replaces the old, problematic info module architecture with a new one that doesn't have the issues, and instead offers some benefits, most prominently ensuring that all info files export the identical shape and types.

In detail, this MR does:

  • Port the old info module to TypeScript, and create an info feature out of it that can be imported like a regular feature (because it is).
  • Use the existing build mechanism to swap out the generic values for target-specific ones.
  • Adjust import paths accordingly.
  • Adjust the custom testing framework accordingly.
  • Remove unneeded files and code.
  • Update the info feature to report back only the browser's major version.
Edited by Jens Arps

Merge request reports