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
injecting "path" doesn't work for me #968
Comments
Oh I just now found #10. I'm in the same boat -- I use modules that require node modules, but my code is guaranteed to never hit those paths. |
Strangely though, if I use this entry:
it does get shimmed in. |
@retorquere Can you show what your |
It's just
I rewrote the shim to more closely match the sample in the docs but it made no difference. Full build command is
|
The inject feature is a way to shim unbound global variable references within a file. It has nothing to do with package path resolution. In this case the inject feature is not doing anything because If you want to substitute the |
Aha! So in order to shim
pretty sweet! |
The documentation with the JS samples is stellar BTW. |
Good to hear. Ok I'm going to close this then since it sounds like this line of investigation has concluded. |
I use
--inject:./path-shim.js
in my command line, withpath-shim.js
beingbut I'm still getting
The text was updated successfully, but these errors were encountered: