hypothesis / browser-extension

The Hypothesis browser extensions.
BSD 2-Clause "Simplified" License
486 stars 128 forks source link

Load scripts as modules where possible #1504

Closed robertknight closed 5 months ago

robertknight commented 5 months ago

Load the JS for the help, options and PDF viewer pages as modules. This makes handling of the code more consistent with the background service worker, which is written as ES modules and bundled into a script.

This PR is a small piece of cleanup prior to a future ESLint v9 upgrade.