-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Compiling code that uses library installed via npm link failes #117
Comments
I think these are browserify issues that just happen to be visible via babelify. See:
Couldn't agree more. I've been trying to fix that: |
Okay, there seems to be a workaround. |
@polkovnikov-ph What's your browserify version? |
@jmm |
@polkovnikov-ph Thanks. Not sure about your |
@polkovnikov-ph are you still having this problem? |
I was experiencing this bug with babelify + browserify: "3.0.0". I upgraded browserify to "^4.0.1" and it was solved. You can probably close this. |
When doing a
babelify
transform after some previous transform on the sources that include some library vianpm link
, and if that library contains something likeObject.keys
,babelify
makes build fail due to missingbabel-runtime
properties.While if the library is reinstalled via
npm install
and it still containsObject.keys
, it works OK.The part of the message
from ...
doesn't point to an exact file, but to the whole library folder, and that doesn't seem like a correct behaviour also, because it takes time to look through all the sources of the library to find thatObject.keys
.Also I don't understand why
babelify
even starts transforming that library, because defaultbrowserify
behaviour for-t
is to transform all the sources except libraries.The text was updated successfully, but these errors were encountered: