-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
import RA default export doest not works #456
Comments
I have made some investigations on ramda : import R from 'ramda' // use "main" field (commonjs)
import * as R from 'ramda' // use "main" field (commonjs) It seems like Ramda have a bug and never really expose es module. import RA from 'ramda-adjunct' // use "jsnext:main" field (es)
import * as RA from 'ramda-adjunct' // use "jsnext:main" field (es) I can't find a case where "module" is used, I test this with babel 6 and this configuration : {
"presets": [
["es2015"],
["stage-0"]
]
}
Related to ramda/ramda#2355 |
How do u consume btw. I strongly believe this is expected behaviour. You are not supposed to be able to import |
In my case I've just node, so
You right, but I have to know why |
Might be because |
I'm having same issue:
Perhaps we should change docs? https://github.com/char0n/ramda-adjunct/blob/master/README.md#es6 ES6
|
Yes the current behavior |
Because we looking for consistance between |
I agree, as long as it doesn't effect Treeshaking. |
@guillaumearm |
@Andarist : I mean it's work when you import ramda as default. |
It really shouldnt until ur setup is in some way not-standard. |
@Andarist The problem is that someone used to using Ramda like this:
Will expect Ramda Adjunct to function in the same way. However using ES6 imports the following will not work (works fine with
|
Since |
@Andarist Thanks for the link. In that case, as long as we aren't doing it anywhere in the docs or examples, I think we can safely close this issue. |
Like @Andarist said :
So now that consistency issues between |
default export seems to not works like
ramda
does.I don't understand why, maybe need to investigate https://github.com/ramda/ramda/blob/master/.babelrc
The text was updated successfully, but these errors were encountered: