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

Deletion of .mdx files under folders doesn't trigger webpack compilation #36

Closed
fmal opened this issue Dec 8, 2020 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@fmal
Copy link

fmal commented Dec 8, 2020

To reproduce add some pages in the root pages folder and nest some pages under a folder. Deleting root pages results in Webpack recompilation and nav tree updated, but if you delete a page under folder there is no update.
Seems like the fix is to add addContextDependency not only for pages but every child directory within it as well (ideally using a glob like pages/**).

@shuding shuding added the bug Something isn't working label Dec 8, 2020
@dimaMachina
Copy link
Collaborator

On 2.0.0-beta.10 I removed a MDX file and hot reload worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants