Skip to content

Commit

Permalink
[@kbn/babel-register] ensure that source maps are included inline (#1…
Browse files Browse the repository at this point in the history
…48407)

In #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
  • Loading branch information
Spencer authored Jan 4, 2023
1 parent b497ea9 commit ecf18db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-babel-transform/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function getBabelOptions(path, config = {}) {
],
cwd,
babelrc: false,
sourceMaps: !config.disableSourceMaps,
sourceMaps: config.disableSourceMaps ? false : 'both',
ast: false,
};
}
Expand Down

0 comments on commit ecf18db

Please sign in to comment.