-
Notifications
You must be signed in to change notification settings - Fork 5.9k
chore(dev): migrate away from parcel #3578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3578 +/- ##
==========================================
- Coverage 60.67% 59.19% -1.48%
==========================================
Files 35 35
Lines 1790 1784 -6
Branches 404 361 -43
==========================================
- Hits 1086 1056 -30
- Misses 562 612 +50
+ Partials 142 116 -26
Continue to review full report at Codecov.
|
22f4f66
to
60f9ec2
Compare
d7eee9f
to
87ed86b
Compare
Currently blocked due to the Filed an issue upstream here but would love any help/suggestions. |
2a761a0
to
5623c28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of changes in the deps, it's a good thing we have good test coverage!
Turns out this only semi-works.
|
WIP: https://github.com/cdr/code-server/tree/jsjoeio/remove-parcel Having issues getting our code to load in the browser after compiling with Ideally, it should be easy:
The adventure continues next week. |
Anything I can help with to upgrade you to Parcel 2? What issues did you run into with it? |
Hey @devongovett - super kind of you to offer to help — thank you! I wish I took better notes when I was trying to upgrade to Parcel 2. I filed two issues (parcel-bundler/parcel#6433 and parcel-bundler/parcel#6433) which did help but there were other issues we couldn't get past. All I do remember was something changed between Parcel 1 and Parcel 2 with how TypeScript files were bundled and we couldn't get it working with Parcel 2. There also weren't TypeScript typings, which was a bit of a bummer (but I think that's being worked on? parcel-bundler/parcel#3912) Regardless, it made us realize that we really only needed to bundle a few files and it was probably overkill asking Parcel to do it for us. We ended up using Thanks again for offering to help! Can't tell you how much we appreciate it. |
Yes, TS definitions for the API are in progress: parcel-bundler/parcel#6484 Anyway, if you do figure out what the problem was I'm happy to help. Ideally Parcel should work fine for cases like this. |
f642631
to
4f40ba9
Compare
735fb5b
to
ffdb7fc
Compare
6b1820e
to
c3eb4e8
Compare
c11c9b0
to
db3c921
Compare
parent c4e7ee3 author Joe Previte <[email protected]> 1624313323 -0700 committer Joe Previte <[email protected]> 1624386904 -0700 gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE6XoH+XX6Zt5LBiiaLJFZDGt0LCQFAmDSLVgACgkQLJFZDGt0 LCRIsw/8C35RO8Yr/gLs2PDeYXdmfBgB96dj71eZFeUxiURY+6xGkFLWff+Dm7P/ tN36AQSMkL8Ia8+r5XEQK1q92lQrsJfJKRRJ4OW/Xn2ZF8D0YRZWomhVjKHQRozs TPMt3IOeFjmCpF2M8veI3KgbF/p29YTwQ6PcKE2dsodF3CUoEzW9ciswKOinxAev iliSgbHuu35hX+OHtAm5ZJh5WOxhr23o9vwuJSLw2+/285sqPPwRO3wwZuLLh6wA KYFer3/vfS6+EIs0ushajeeDYsaMYtr55Yc9OI4otcQoT1GQFuGe5D/ISN6XYtmB N9RKKkiWVnG959eKQ7ycnDXrt1KQphxkaMR3o3DGsX1FPK6WAxOuDHN+VHZXelLM S8ZhmVblbfu8bkkLO8+xb5I1iz4NnV7QDI3q/1dqcq+ZTzRfu0b19RpPSxyZJ5dx 9g3KFZ29qzovb5aH5+9yQvJlGtflzsL6eIbOYdv7LuslEhE8Ks9Oa2zSjbQ8K/4q DAWfj6wR80yg36eL55gH9IJeMT0g+W3oUxRa0Um7PAgNAoFcaBI0jpAPuf1W7Rzd 2asHTkpENQUHe5fZkUpzVVmkqf2LzhjChAd5cKkdS4pp+ne8sfy6+sJRBoIUmwXy zQ8ZYJnsWXLrC/ijiOzFzrTskgr875vj7oEczmjfcyvNutskTG8= =kJgg -----END PGP SIGNATURE----- refactor: remove parcel refactor: upgrade to parcel v2 fix: css-what and normalize-url refactor: update parcel settings in build-code-server.sh feat: add .parcel-cache to .gitignore refactor: reference /src stylesheets in pages/*.html refactor: remove css imports from register.ts refactor: bundle pages/*css in release refactor: upgrade to parcel v2
db3c921
to
5d4e08e
Compare
How to fix:
Actually, that should work but I'm running into an issue which appears to be upstraem |
I'm going to try @code-asher's idea tomorrow and create a new branch and PR. I will copy over everything too. |
Closing in favor of #3658 |
This PR migrates us away from Parcel by using
tsc
andbrowserify
to accomplish the same thing.Originally, we needed to upgrade Parcel from v1 to v2 due to maintainers deprecating v1 and a bunch of security vulnerabilities that we couldn't patch in v1. We were going to use v2 but it has breaking changes. So we decided to replace it with
browserify
which is a bit more lightweight and does the same thing.Changes
parcel
tsc
to compile.ts
files andbrowserify
to bundle a few files used in the browsercss
files directly in HTML instead of including withjs
bundlesbrowserify
plugintinyify
)codecov.yml
which allows us to override some default settingsScreenshot
Screenshot after building and running locally

Checklist
CHANGELOG.md
Related