Skip to content

Commit

Permalink
Add module field to locales packages
Browse files Browse the repository at this point in the history
Currently I have to import esm packages directly.

```js
import en from 'date-fns/esm/locale/en-GB';
import fr from 'date-fns/esm/locale/fr';
import de from 'date-fns/esm/locale/de';
``

with this change merged I will be able to simplify this with

```js
import en from 'date-fns/locale/en-GB';
import fr from 'date-fns/locale/fr';
import de from 'date-fns/locale/de';
``
  • Loading branch information
TrySound authored and kossnocorp committed Aug 26, 2019
1 parent c1182c0 commit 0a9213b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function writePackage(fullPath) {
function getInitialPackages() {
return listFns()
.concat(listFPFns())
.concat(listLocales())
.concat(extraModules)
.reduce((acc, module) => {
acc[module.fullPath] = getModulePackage(module.fullPath)
Expand Down

0 comments on commit 0a9213b

Please sign in to comment.