Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Changes to the .babelrc file do not invalidate the cache #587

Closed
thasmo opened this issue Feb 25, 2018 · 5 comments
Closed

Changes to the .babelrc file do not invalidate the cache #587

thasmo opened this issue Feb 25, 2018 · 5 comments
Labels

Comments

@thasmo
Copy link

thasmo commented Feb 25, 2018

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,
    },
}
@danez
Copy link
Member

danez commented Feb 25, 2018

Did this work with beta.0? Do you know?

@danez danez added the bug label Feb 25, 2018
@thasmo
Copy link
Author

thasmo commented Feb 25, 2018

@danez, I think it didn't work either, hence I opened babel/babel#7427 when I was using beta.0.

@danez danez reopened this Feb 25, 2018
@danez
Copy link
Member

danez commented Feb 25, 2018

I keep it open for now, because the only bug i found was one I introduced in beta.1.

@danez
Copy link
Member

danez commented 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.

@thasmo
Copy link
Author

thasmo commented Feb 26, 2018

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants