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(hmr): allow disabling md cache during dev #2581

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Jul 4, 2023

closes #117

To make HMR work with markdown includes or imported code snippets, add this to your config file:

export default {
  markdown: {
    cache: false
  }
}

It won't affect build performance, but might degrade dev perf slightly (~100ms, if you do undo/redo multiple times).

Alternatively, you can just press r on the terminal. But it's not good DX and it performs full page reload.

@brc-dd brc-dd merged commit f60b32f into main Jul 4, 2023
@brc-dd brc-dd deleted the fix-hmr-includes branch July 4, 2023 07:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HMR not working on import code snippets
1 participant