fix(flamegraph): add webpack config for customconditions support

This commit is contained in:
Jack Westbrook
2026-01-14 07:34:51 +01:00
parent cf452c167b
commit eae6bbe015
@@ -46,6 +46,16 @@ const config: StorybookConfig = {
})
);
// Tell storybook to resolve imports with the @grafana-app/source condition for
// the packages in this repo.
if (config && config.resolve) {
if (Array.isArray(config.resolve.conditionNames)) {
config.resolve.conditionNames.unshift('@grafana-app/source');
} else {
config.resolve.conditionNames = ['@grafana-app/source', '...'];
}
}
return config;
},
};