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

Fix SSR cache invalidation #217

Merged
merged 2 commits into from
Dec 2, 2020
Merged

Fix SSR cache invalidation #217

merged 2 commits into from
Dec 2, 2020

Conversation

Rich-Harris
Copy link
Member

Closes #214

@Rich-Harris Rich-Harris merged commit ffd7bba into master Dec 2, 2020
@Rich-Harris Rich-Harris deleted the gh-214 branch December 2, 2020 15:46
snowpack.onFileChange(({ filePath }) => {
for (const path in absolute_mount) {
if (filePath.startsWith(path)) {
const relative_path = relative(path, filePath.replace(/\.\w+?$/, '.js'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be helpful to have a comment explaining the replace. e.g. is this to support .mjs or .ts extensions or something?

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.

SSR module cache doesn't appear to be clearing
2 participants