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

Loader should reuse the page map in production build #34

Closed
shuding opened this issue Dec 6, 2020 · 0 comments
Closed

Loader should reuse the page map in production build #34

shuding opened this issue Dec 6, 2020 · 0 comments

Comments

@shuding
Copy link
Owner

shuding commented Dec 6, 2020

It’s fine to watch all, access fs and trigger updates in dev environment. But for production build (NODE_ENV=production) we should reuse the page map.

This ensures prod build is O(n) instead of O(n^2).

promer94 added a commit to promer94/nextra that referenced this issue Jan 1, 2022
1. refactor remark plugin for header
2. add some basic test using vitest
3. cache pagemap close shuding#34
promer94 added a commit to promer94/nextra that referenced this issue Jan 14, 2022
1. refactor remark plugin for header
2. add some basic test using vitest
3. cache pagemap close shuding#34
@shuding shuding closed this as completed Jan 15, 2022
tatukoivisto pushed a commit to tatukoivisto/nextra that referenced this issue Aug 20, 2023
1. refactor remark plugin for header
2. add some basic test using vitest
3. cache pagemap close shuding#34
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

No branches or pull requests

1 participant