Skip to content

Commit

Permalink
fix(dependency): update babel-preset-env (#421)
Browse files Browse the repository at this point in the history
* fix(dependency): update babel-preset-env
* docs(usage): fix style
  • Loading branch information
ismay committed Jun 22, 2020
1 parent d456bd4 commit 09bcde7
Show file tree
Hide file tree
Showing 3 changed files with 694 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-syntax-optional-chaining": "^7.8.3",
"@babel/preset-env": "^7.6.2",
"@babel/preset-env": "^7.9.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.6.0",
"@dhis2/app-shell": "4.0.8",
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ The following NPM packages are automatically provided by the platform. You can r

## Singleton Dependencies

Several standard DHIS2 Application dependencies require that only one copy is present in the application bundle. This also reduces the size of the final bundle which is beneficial for network performance.
Several standard DHIS2 Application dependencies require that only one copy is present in the application bundle. This also reduces the size of the final bundle which is beneficial for network performance.

To de-duplicate singleton dependencies we recommend using [yarn-deduplicate](https://github.com/atlassian/yarn-deduplicate):

```sh
> npx yarn-deduplicate --packages react,react-dom,@dhis2/app-runtime,@dhis2/ui-core,@dhis2/d2-i18n,styled-jsx
```

You may optionally specify a different version of one of these libraries and avoid duplicate versions in your application bundle by adding a [`resolutions` map entry](https://legacy.yarnpkg.com/en/docs/selective-version-resolutions/) to `package.json`. Use with caution, however, as this might force dependencies to use an incompatible version of one of the standard libraries, which can cause hard-to-debug issues.
You may optionally specify a different version of one of these libraries and avoid duplicate versions in your application bundle by adding a [`resolutions` map entry](https://legacy.yarnpkg.com/en/docs/selective-version-resolutions/) to `package.json`. Use with caution, however, as this might force dependencies to use an incompatible version of one of the standard libraries, which can cause hard-to-debug issues.

## Custom dependencies

Expand Down
Loading

0 comments on commit 09bcde7

Please sign in to comment.