Open Jinjiang opened 2 months ago
User can't customize exclude option to support hmr for files inside node_modules.
With this PR, the reproduction can be fixed by Vite config:
plugins: [react({ include: [/\.[tj]sx?$/, /\.[mc]js$/], exclude: [/\/node_modules\/(?!foo\/)/], })],
fixes #123
Description
User can't customize exclude option to support hmr for files inside node_modules.
Additional context
304
With this PR, the reproduction can be fixed by Vite config:
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).