I am using the @parcel/transformer-webextension transformer and having good success with it. I have one issue I'm trying to resolve. Firefox is not happy.
I reference jquery and bootstrap from the index page of my pop-up and options pages. I reference them both from npm, e.g.:
Parceljs is processing them into minimized (again) files with generated names. It all works properly in other browsers, but Firefox does not like this, because
- It doesn't realize this is jquery because the generated file's hash doesn't match; and
- It uses innerHtml to set values in the DOM.
If I can pass through the minimized jquery file intact, it will accept it because it will apply the hash correctly. See:
How can I configure Parceljs to leave the jquery.min.js file intact, deliver it to dist directory, and update the reference in HTML?
Thanks in advance - jlo