From ecf18dbc0606eb8df33513e2809a8f52cc52d027 Mon Sep 17 00:00:00 2001 From: Spencer Date: Wed, 4 Jan 2023 13:30:49 -0600 Subject: [PATCH] [@kbn/babel-register] ensure that source maps are included inline (#148407) In https://github.com/elastic/kibana/pull/146212 the default `sourceMaps` config for babel register changed from `both` to `true`, which creates the source maps but does not embed them in the compiled output so that dev-tools are able to inspect them even though they are not on the filesystem. cc @vitaliidm --- packages/kbn-babel-transform/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-babel-transform/options.js b/packages/kbn-babel-transform/options.js index c8c089f873da7..4b98a790414e7 100644 --- a/packages/kbn-babel-transform/options.js +++ b/packages/kbn-babel-transform/options.js @@ -31,7 +31,7 @@ function getBabelOptions(path, config = {}) { ], cwd, babelrc: false, - sourceMaps: !config.disableSourceMaps, + sourceMaps: config.disableSourceMaps ? false : 'both', ast: false, }; }