diff --git a/services/web/.storybook/main.ts b/services/web/.storybook/main.ts index b340d6c612..775e223bbd 100644 --- a/services/web/.storybook/main.ts +++ b/services/web/.storybook/main.ts @@ -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,