Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Improve detection of files already digested #718

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

brenogazzola
Copy link
Contributor

As indicated in rails/propshaft#10, the current auto detection of digests in the filename is causing false positives. So we are changing it to require the .digested word after the digest.

To keep parity with Propshaft, and make this compatible with esbuild (which does not use any of sprockets digest algorithms), I've relaxed the regex and removed the digest class detection

@dhh
Copy link
Member

dhh commented Oct 12, 2021

Anything else needed before this can be merged? Then we need to update jsbundling-rails to produce these outputs by default. Would be nice to turn on source maps for esbuild by default as well.

@brenogazzola
Copy link
Contributor Author

Yes. I'll update the Webpack file in jsbundling to reflect.

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

Successfully merging this pull request may close these issues.

2 participants