From 17819dd1203a807fa56a632db61a323d9c39fdeb Mon Sep 17 00:00:00 2001 From: Spencer Date: Wed, 31 Mar 2021 18:36:52 -0700 Subject: [PATCH] [kbn/optimizer] import source-map-support in script to avoid breaking jest snapshots (#96011) Co-authored-by: spalger --- packages/kbn-optimizer/src/cli.ts | 2 -- scripts/build_kibana_platform_plugins.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/kbn-optimizer/src/cli.ts b/packages/kbn-optimizer/src/cli.ts index 6e3106dbc2af7..d5b9996dfb2cd 100644 --- a/packages/kbn-optimizer/src/cli.ts +++ b/packages/kbn-optimizer/src/cli.ts @@ -6,8 +6,6 @@ * Side Public License, v 1. */ -import 'source-map-support/register'; - import Path from 'path'; import { REPO_ROOT } from '@kbn/utils'; diff --git a/scripts/build_kibana_platform_plugins.js b/scripts/build_kibana_platform_plugins.js index fa630e0bb1808..9038d08364400 100644 --- a/scripts/build_kibana_platform_plugins.js +++ b/scripts/build_kibana_platform_plugins.js @@ -7,6 +7,7 @@ */ require('../src/setup_node_env/ensure_node_preserve_symlinks'); +require('source-map-support/register'); require('@kbn/optimizer').runKbnOptimizerCli({ defaultLimitsPath: require.resolve('../packages/kbn-optimizer/limits.yml'), });