Compare commits

...

1 Commits

Author SHA1 Message Date
Jack Westbrook
eae6bbe015 fix(flamegraph): add webpack config for customconditions support 2026-01-14 07:34:51 +01:00

View File

@@ -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;
},
};