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.

Changes to the `.babelrc` file do not invalidate the cache

See original GitHub issue

I’m submitting a bug report.

Current Behavior When using cacheDirectory: true the cache does not get invalidated between changes to .babelrc contents. Disabling the cache works as expected and changes to .babelrc are reflected in the generated bundle.

Expected Behavior When using cacheDirectory: true the cache should be invalidated between changes to the .babelrc file as mentioned in the docs.

Versions

  • node: 9.5.0
  • npm: 5.6.0
  • webpack: 3.11.0
  • babel-loader: 8.0.0-beta.1
  • @babel/core": “^7.0.0-beta.40”,
  • OS: Windows 10 Pro 64-bit

Configuration

{
    loader: 'babel-loader',
    options: {
        cacheDirectory: true,
    },
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
thasmocommented, Feb 26, 2018

This seems to work now, using beta.2. 👍

0reactions
danezcommented, Feb 26, 2018

I released beta.2 which should fix the problem that was introduced in beta.1 If it still does not work, we need to investigate more.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Config Files - Babel.js
Babel has two parallel config file formats, which can be used together, ... .mjs . .babelrc file, with no extension. package.json files, with...
Read more >
how to clear babel cache? - Stack Overflow
If you are using a babel.config.js file which looks like below. You can turn off the cache by passing false to api.cache(false)
Read more >
babel cache folder - The Case Cam
Currently Babel will invalidate the cache when you change your config or the file content, but otherwise deleting the cache folder is the...
Read more >
Parcel 2 beta 3
On the ESBuild benchmark, Parcel is now ~10x faster without Terser, ... When any of these change, Parcel needs to invalidate the cache...
Read more >
Changelog | Meteor API Docs
Don't apply babel async-await plugin when not running on Fibers PR. by ... it no longer relies on file watchers to detect the...
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