rxaviers / react-globalize-compiler

I18n support for React applications using Globalize
MIT License
5 stars 2 forks source link

transform: support Babel6 #8

Closed alunny closed 8 years ago

alunny commented 8 years ago

Babel 6 outputs module.default rather than module["default"] for default exports. This patch supports both formats.

See also jquery-support/globalize-compiler#12

rxaviers commented 8 years ago

:+1:

rxaviers commented 8 years ago

I've noticed this repo mixes two coding styles spacey (e.g., require( "foo" )) vs. non-spacey (e.g., require("foo")), but this can be addressed separately.