mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user