cli icon indicating copy to clipboard operation
cli copied to clipboard

chore: upgrade parcel to v2

Open jbroma opened this issue 1 year ago • 3 comments

Summary:

builds correctly but no idea if the config is right, needs to be tested

Test Plan:

  • [ ] - builds without errors
  • [ ] - works as before

Checklist

  • [ ] Documentation is up to date to reflect these changes.
  • [ ] Follows commit message convention described in CONTRIBUTING.md

jbroma avatar May 09 '24 08:05 jbroma

Tested on debugger-ui, works as intended, there are no additional errors in console.

Piotrfj avatar May 13 '24 12:05 Piotrfj

There's something wrong with specifying exports for browser and node environment, @Piotrfj did you remove previous build?

After running rm -rf build && yarn build, /debugger-ui route fails with an error:

CleanShot 2024-05-26 at 16 27 08@2x

PS. I tried specifying targets and exports field but unfortunately I didn't get it working ;/

szymonrybczak avatar May 26 '24 14:05 szymonrybczak

@szymonrybczak I've done clean install/build on the branch, so I don't think there was any issues with that. @jbroma can you also confirm that the problem issued by @szymonrybczak, I will try to test it soon also

Piotrfj avatar May 29 '24 19:05 Piotrfj

Tested this locally and while building on clear and populated cache works, changing the HTML contents and rebuilding causes SIGSEGV when doing parcel build or just straight not outputting the files to the filesystem (while the Parcel UI states they were built, which I guess is some kind of race condition). Haven't found anything helpful in how to mitigate that other than removing the .parcel-cache folder in project root every time we make a change in HTML.

Provided that we're not going to change this part of the codebase anytime soon (other than deleting it once Experimental Debugger is not experimental anymore), I'm leaning towards merging it as it shouldn't have impact on our users (we publish the build/ folder), just on the contributiors wanting to change stuff there or release the new version that may have some files missing.

thymikee avatar Jun 03 '24 19:06 thymikee

thanks for looking into that @thymikee 🎉

perhaps let's just run the build command with --no-cache instead of deleting it, that should always overwrite the contents

jbroma avatar Jun 03 '24 20:06 jbroma

Yeah, tested and --no-cache also works for me! Good idea 👍

szymonrybczak avatar Jun 03 '24 20:06 szymonrybczak

Added the --no-cache flag, works as expected, thanks! 👍🏼

thymikee avatar Jun 04 '24 07:06 thymikee