[storybook] invalidate babel cache if needed (#32035)

* [storybook] invalidate babel cache if needed

* [storybook] defer import until after overriding env var

GitOrigin-RevId: 735e6c794cb61f72b7a5ccbe9d6ae310b577b727
This commit is contained in:
Jakob Ackermann
2026-03-05 12:55:07 +01:00
committed by Copybot
parent 87c7b23107
commit c59ac4cc55

View File

@@ -11,6 +11,11 @@ function getAbsolutePath(value: string): any {
return path.dirname(require.resolve(path.join(value, 'package.json')))
}
// Make sure that babel-macros are re-evaluated after changing the modules config
// Import this after setting process.env.OVERLEAF_CONFIG
const invalidateBabelCacheIfNeeded = require('../frontend/macros/invalidate-babel-cache-if-needed')
invalidateBabelCacheIfNeeded()
const config: StorybookConfig = {
core: {
disableTelemetry: true,