question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v2: Move dist dir out of .parcel-cache

See original GitHub issue

💬 RFC

I have to clear .parcel-cache quite often to get around stale cache issues, but this wipes .parcel-cache\dist. As noted in #3407, I have set up special data inside .parcel-cache\dist so that I can test from a dev server, but this makes wiping the parcel cache quite annoying.

Currently, it is hardcoded that the dist dir is inside the cache dir: https://github.com/parcel-bundler/parcel/blob/v2/packages/reporters/dev-server/src/ServerReporter.js#L25

But this makes it hard to wipe the assets from the build without affecting the dist folder.

Alternatively, the cache folder could set things up so that it is .parcel-cache/dist and .parcel-cache/assets, and then I can simply wipe one folder.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DeMoorJaspercommented, Mar 15, 2020

@alidlo there’s an issue to track this #4332 we’re working on fixing this.

1reaction
aleedmanathcommented, Mar 15, 2020

@devongovett Testing out Parcel 2, so I’ll add - I have to delete the cache any time I make a change to a linked package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration - Parcel
Let's walk through a couple basic steps to upgrade from Parcel 1 to Parcel 2. Package name. #. The first thing to note...
Read more >
Stephan Meijer Twitterissä: "Cache files are now written to a ...
Cache files are now written to a `.parcel-cache` folder in your project root. You want to add that to your `.gitignore`. Käännä twiitti....
Read more >
parcel always caches no matter - Stack Overflow
... the browser cache by doing a hard refresh ( Ctrl Shift R in Firefox). ... from the cache – a .parcel-cache folder...
Read more >
How to Bundle a Web App with Parcel.js - DigitalOcean
You can press ENTER to move through each question, or change any of the ... This regenerates the '.parcel-cache and dist folders and...
Read more >
@parcel/cache | Yarn - Package Manager
Changelog. All notable changes to Parcel will be documented in this file. The format is based on Keep a Changelog and Parcel adheres...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found