Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a major refactor of React Intl's build and npm package layout.
Locale data is now package-relative and can more easily be loaded:
There is now only one copy of these locale data files in the package and they are UMD modules which export the locale data for a language.
Rollup is now being used to build a single-file React Intl module for three different targets:
ReactIntl
global): Browser build with bundled dependenciesmain
): For Node/Browserify/Webpack withrequire()
-d dependenciesjsnext:main
): For consumption viaimport
withimport
-d dependenciesAll of the builds are compiled with Babel and bundled into a single module file. Rollup is used to fold all of the internal
src/
modules into one. The difference betweenlib/index.js
andlib/index.es.js
is the latter has everything compiled expect theimport
/export
statements for React Intl as a whole package.The
.babelrc
files have been moved to closer to the source code which they apply. This allows for test or example code to leverage experimental ECMAScript syntax without leaking it into the main src.These changes should result is a smaller and faster package as all of React Intl's code is folded into a single module scope, and the Babel helpers are only included once (instead of per module file). As well as fixing support for IE8.
Fixes #203
Fixes #204
Fixes #275
Fixes #277