You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, in another file, I can easily call my class Foo by an import foo from './a'
But, I cannot call my second export bar, so when I type import { bar } from './a' and then console.log(bar.buzz) it throw an error Cannot read property 'buzz' of undefined.
The only "solution" I have is to add manually this:
module.exports.bar = exports.bar;
Obvioulsy, it's not a solution for me :-)
Any idea about this problem concerning the other export than the default one? Thanks,
The text was updated successfully, but these errors were encountered:
Hi,
I'm facing an issue with this plugin.
So in file a.js i've this code:
When I look at babel's plugin output, it is:
So, in another file, I can easily call my class Foo by an
import foo from './a'
But, I cannot call my second export bar, so when I type
import { bar } from './a'
and thenconsole.log(bar.buzz)
it throw an errorCannot read property 'buzz' of undefined
.The only "solution" I have is to add manually this:
Obvioulsy, it's not a solution for me :-)
Any idea about this problem concerning the other export than the default one? Thanks,
The text was updated successfully, but these errors were encountered: