dojo / webpack-contrib

Plugins and loaders for webpack used with Dojo
Other
4 stars 19 forks source link

CLDR webpack loader and plugin #243

Closed agubler closed 4 years ago

agubler commented 4 years ago

Type: feature

The following has been addressed in the PR:

Description:

Adds a loader and plugin that together enable Dojo application's to automatically detect required CLDR data based on a set of locales. The Plugin detects if any of the dojo framework i18n formatter modules are used in the application and creates appropriate CLDR bundles for all supported locales. The loader generates the CLDR data loaders that are set on the applications i18n API so that they can be used to lazily load the CLDR data on request.

For sync mode (i.e. single-bundle), all the i18n CLDR data is included in the main bundle.

Related to https://github.com/dojo/framework/issues/655

Note: requires release of dojo/framework

codecov[bot] commented 4 years ago

Codecov Report

Merging #243 into master will increase coverage by <.01%. The diff coverage is 95.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
+ Coverage   84.25%   84.26%   +<.01%     
==========================================
  Files          46       48       +2     
  Lines        2096     2186      +90     
  Branches      564      579      +15     
==========================================
+ Hits         1766     1842      +76     
- Misses        330      344      +14
Impacted Files Coverage Δ
src/bootstrap-plugin/async.js 0% <0%> (ø) :arrow_up:
src/bootstrap-plugin/sync.js 0% <0%> (ø) :arrow_up:
src/cldr/Plugin.ts 100% <100%> (ø)
src/cldr/loader.ts 100% <100%> (ø)
src/electron-plugin/ElectronPlugin.ts 0% <0%> (ø) :arrow_up:
src/build-time-render/BuildTimeRender.ts 95.08% <0%> (+0.54%) :arrow_up:
src/css-module-dts-loader/loader.ts 100% <0%> (+1.42%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update de3d9f9...b7a595f. Read the comment docs.