Closed KaisSalha closed 3 months ago
What do you think about using dep.split('/').at(0)
instead? I have a feeling it might be more reliable considering the wide spread of package names. For example I fear that this would match both package
and package-somethingelse
Did you run the updated code on your branch with-fix? Because this line seems to suggest that there this doesn't full work.
@favna updated
This PR adds support for handling subpath imports.
Before fix: https://github.com/KaisSalha/esbuild-plugin-file-path-extensions-bug
After fix: https://github.com/KaisSalha/esbuild-plugin-file-path-extensions-bug/tree/with-fix