Skip to content

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

2 participants