Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Possible to construct stronger cache identifier? #190

Closed
langri-sha opened this issue Jul 17, 2017 · 2 comments
Closed

Possible to construct stronger cache identifier? #190

langri-sha opened this issue Jul 17, 2017 · 2 comments

Comments

@langri-sha
Copy link

langri-sha commented Jul 17, 2017

From what I understand, the current way the cache identifier is constructed gives off odd reports if the ESLint configuration has changed between two runs.

I have only one ESLint configuration file, so I could have a straightforward workaround to write a plugin that hooks into the environment event from the compiler and maintain a hash for the contents , then manually wipe the cache path assigned to eslint-loader, but I'm wondering if this could somehow be managed by the loader itself?

@MoOx
Copy link
Contributor

MoOx commented Jul 17, 2017

We should probably create a hash with version/config/path and adjust this here https://github.com/MoOx/eslint-loader/blob/667baf33828405b47ba42930ccac0ccaa6546c0b/index.js#L157-L160

@ricardogobbosouza
Copy link
Collaborator

@langri-sha I'm reviewing the issues
Does this seem to exist now or not? https://github.com/webpack-contrib/eslint-loader/blob/master/index.js#L205
It's been a while! LOL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants