Add io-ts in kb-ui-shared-bundle (#159792)

This commit is contained in:
Shahzad 2023-06-15 15:17:18 +02:00 committed by GitHub
parent 31b34771c5
commit 439d00a7b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View file

@ -59,6 +59,7 @@ RUNTIME_DEPS = [
"@npm//styled-components",
"@npm//tslib",
"@npm//uuid",
"@npm//io-ts",
]
webpack_cli(

View file

@ -88,6 +88,7 @@ module.exports = (_, argv) => {
'classnames',
'fflate',
'history',
'io-ts',
'jquery',
'lodash',
'lodash/fp',

View file

@ -55,6 +55,7 @@ const externals = {
'@kbn/monaco': '__kbnSharedDeps__.KbnMonaco',
// this is how plugins/consumers from npm load monaco
'monaco-editor/esm/vs/editor/editor.api': '__kbnSharedDeps__.MonacoBarePluginApi',
'io-ts': '__kbnSharedDeps__.IoTs',
/**
* big deps which are locked to a single version

View file

@ -21,6 +21,8 @@ export const EmotionCache = require('@emotion/cache');
export const EmotionReact = require('@emotion/react');
export const Moment = require('moment');
export const MomentTimezone = require('moment-timezone/moment-timezone');
export const IoTs = require('io-ts');
export const KbnMonaco = require('@kbn/monaco');
export const MonacoBarePluginApi = require('@kbn/monaco').BarePluginApi;
export const React = require('react');