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

Improve build #6

Merged
merged 10 commits into from
Oct 23, 2022
Merged

Improve build #6

merged 10 commits into from
Oct 23, 2022

Conversation

nvh95
Copy link
Owner

@nvh95 nvh95 commented Oct 23, 2022

Features

  • Build CLI as .mjs
  • Move .vite-preview out of node_modules since chokidar couldn't detect changes inside node_modules (not work in Linux, work on Mac hasn't tested on Windows) even we exclude it as follow:
const vite = await createViteServer({
    server: {
      middlewareMode: true,
      // This does not work on Linux, but work fine on Mac
      // watch: {
      // By default, Vite doesn't watch code under node_modules
      // Reference: https://vitejs.dev/config/server-options.html#server-watch
+      ignored: ['!**/node_modules/.vitest-preview/**'],
      // },
    },
});

This issue is being tracked here vitejs/vite#8619. We can move it back to node_modules once chokidar resolves it/ found a way to workaround.

@nvh95 nvh95 merged commit 17e40dc into main Oct 23, 2022
@nvh95 nvh95 deleted the improve-build branch October 23, 2022 02:18
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.

1 participant