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

Files that are resolved via nodePaths fail to trigger the watcher's esbuild event source #3062

Closed
KevinBrogan opened this issue Apr 14, 2023 · 0 comments

Comments

@KevinBrogan
Copy link

My config for esbuild.context includes:
nodePaths: ['./','./components','./functions','./modules']

Any time a file is modified that relies on the nodePaths configuration for import path resolution, the /esbuild event emitter of the watch system will fail to emit an event.

example
/components/Component.js includes import {getElementTag} from 'getElementTag.js'; which is in the functions directory.
changes to getElementTag.js will not fire an event.

modifying the include to import {getElementTag} from '../functions/getElementTag.js'; will result in the event being emitted when getElementTag.js is changed.

versions
node 18.13.0
esbuild 0.17.16
chrome 112.0.5615.121
Windows 10

@evanw evanw closed this as completed in ecb3a89 Apr 16, 2023
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