Alternatively you can bundle your content script code using some module bundler like Webpack or Rollup.
Nice thing about Rollup is that it just replaces imports with actual modules code - so the code is still readable and there is no overhead.
Alternatively you can bundle your content script code using some module bundler like Webpack or Rollup.
Nice thing about Rollup is that it just replaces imports with actual modules code - so the code is still readable and there is no overhead.