esbuild-plugin-flow
esbuild-plugin-flow copied to clipboard
ENOENT no such file or directory
While attempting to bundle the sale-client package, and setting the regex to match all .js files, the plugin throws the following error:
/.../sale-client/src/plugins/FileManageService.js:3:27: ERROR: [plugin: flow] ENOENT: no such file or directory, open '/.../node_modules/sale-client/src/plugins/GetTimeService.js'
The culprit is that src/plugins/FileManageService.js in this package has an import to ./getTimeService.js so there's a casing mismatch and indeed, the file doesn't exist. However, esbuild handles this gracefully with no plugins.
This is a situation in which I think there should be a warning emitted, but no error, passing the build back to esbuild to do its thing.