Conversation
|
Perhaps we should just wait for ES Modules support in Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1451545) so we can just use Snowpack 🤣 |
|
Options we have right now:
The reason I would like to keep sticking to webpack (for now) is the ease of use, it just works (most of the time though). Also relevant to the discussion at fregante/browser-extension-template#34
These do require writing a config file anyway (I assume) which needs to be maintained, so we're right back to the question if we want to keep maintaining the |
That's what I thought. For Refined GitHub, changing builder means porting/rewriting the feature list injection so it takes effort that the change of builder is supposed to prevent. I had also tried Rollup (#3019) but, yeah, it needed just as much configuration and is as slow as Parcel (rollup/rollup#3506). The only advantage is better code output. #3227 itself will drop the need for an SVG loader, so the config will be reduced slightly. However, this is limited to Refined GitHub. If you remove SVG import (which is supported via SVGR in Parcel 1 and supposedly supported in Parcel 2) and feature list injection (which is a very custom solution anyway), Parcel 1 would be good enough for most extensions thanks to parcel-plugin-web-extension, as described in fregante/browser-extension-template#34 |
Follows #2983 and #3618
Based on #3227 (most of the changed files can be ignored)
Parcel is 3 times slower than Webpack.
Fully-minified filesizes are comparable.
Given the speed drop, I'm not sure if it's worth spending time on the remaining issues.
Before
After
Next steps