mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[babel/node] invalidate cache when synth pkg map is updated (#144258)
This commit is contained in:
parent
80b7010f01
commit
efb8fb11df
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ import * as babel from '@babel/core';
|
|||
import { addHook } from 'pirates';
|
||||
import { REPO_ROOT, UPSTREAM_BRANCH } from '@kbn/utils';
|
||||
import sourceMapSupport from 'source-map-support';
|
||||
import { readHashOfPackageMap } from '@kbn/synthetic-package-map';
|
||||
|
||||
import { Cache } from './cache';
|
||||
|
||||
|
@ -83,6 +84,7 @@ function getBabelOptions(path: string) {
|
|||
*/
|
||||
function determineCachePrefix() {
|
||||
const json = JSON.stringify({
|
||||
synthPkgMapHash: readHashOfPackageMap(),
|
||||
babelVersion: babel.version,
|
||||
// get a config for a fake js, ts, and tsx file to make sure we
|
||||
// capture conditional config portions based on the file extension
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue