Closed fregante closed 3 years ago
Another Parcel issue I found is that --no-content-hash
doesn't seem to work because options.[hash].js
changes hash depending on content.
This isn't an immediate issue here but it's an issue for Safari extensions because (sigh) Xcode configuration files include a static list of files to include.
Yeah, I've noticed that as well: https://github.com/parcel-bundler/parcel/issues/5894
Thank you, excellent!
Since https://github.com/parcel-bundler/parcel/discussions/5858 isn't currently possible, I temporarily avoided that issue altogether with the commit above. This requires the user to manually load the polyfill in every file in order to use the browser API, but at least people can already start using Parcel without us having to wait for a fix.
Closes #34
Based on https://github.com/fregante/GhostText/pull/187, https://github.com/npmhub/npmhub/pull/119, https://github.com/tanmayrajani/notifications-preview-github/pull/113
But this PR introduces some cool changes like the preservation of
webextension-polyfill
without any bundling whatsoever, so it can be imported globally and once instead of once per bundle.Wishlist/todo
webext-options-sync
to its own "vendor" entry so it's not bundled 3 times separately https://github.com/parcel-bundler/parcel/issues/5859Current output