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
add-module-exports plugin mimics babel-5 behavior and adds a magic module.exports = exports['default']; statement if the module only has default export. Although this is convenient but it is not the correct behavior and Babel 6 has removed this hack.
Due to this plugin, react-measure default export is undefined when used with TypeScript (at least in my project). If we really need to preserve the old behavior then having multiple bundles (UMD, UMD-legacy, ES6) would be really helpful
Thanks
The text was updated successfully, but these errors were encountered:
add-module-exports
plugin mimicsbabel-5
behavior and adds a magicmodule.exports = exports['default'];
statement if the module only hasdefault
export. Although this is convenient but it is not the correct behavior andBabel 6
has removed this hack.This problem is clearly explained on stackoverflow
https://github.com/59naga/babel-plugin-add-module-exports
Due to this plugin,
react-measure
default export isundefined
when used withTypeScript
(at least in my project). If we really need to preserve the old behavior then having multiple bundles (UMD, UMD-legacy, ES6) would be really helpfulThanks
The text was updated successfully, but these errors were encountered: