docs(NA): adds @kbn/ui-shared-deps-npm into ops devdocs (#132761)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Tiago Costa 2022-05-26 03:28:40 +01:00 committed by GitHub
parent 64c66516f2
commit 124256701e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 4 deletions

View file

@ -26,6 +26,7 @@ layout: landing
{ pageId: "kibDevDocsOpsBabelPreset" },
{ pageId: "kibDevDocsOpsTypeSummarizer" },
{ pageId: "kibDevDocsOpsBabelPluginSyntheticPackages" },
{ pageId: "kibDevDocsOpsUiSharedDepsNpm" },
{ pageId: "kibDevDocsOpsUiSharedDepsSrc" },
]}
/>

View file

@ -182,6 +182,7 @@
{ "id": "kibDevDocsOpsBabelPreset" },
{ "id": "kibDevDocsOpsTypeSummarizer" },
{ "id": "kibDevDocsOpsBabelPluginSyntheticPackages" },
{ "id": "kibDevDocsOpsUiSharedDepsNpm" },
{ "id": "kibDevDocsOpsUiSharedDepsSrc" }
]
},

View file

@ -24,7 +24,6 @@ filegroup(
NPM_MODULE_EXTRA_FILES = [
"package.json",
"README.md"
]
RUNTIME_DEPS = [

View file

@ -1,3 +0,0 @@
# `@kbn/ui-shared-deps-npm`
Shared dependencies that must only have a single instance and also come from NPM are installed and re-exported from here. To consume them, import the package and merge the `externals` export into your webpack config so that all references to the supported modules will be remapped to use the global versions.

View file

@ -0,0 +1,12 @@
---
id: kibDevDocsOpsUiSharedDepsNpm
slug: /kibana-dev-docs/ops/ui-shared-deps-npm
title: "@kbn/ui-shared-deps-npm"
description: A package to share single instances of npm external packages across bundles
date: 2022-05-24
tags: ['kibana', 'dev', 'contributor', 'operations', 'ui', 'shared', 'deps', 'npm']
---
This is a package of shared dependencies that must only have a single instance and are from the NPM external to
the Kibana repository. To consume them, import the package and merge the `externals` export into your webpack
externals config so that all references to the supported modules will be remapped to use the global versions.