grafana/public/app/plugins/datasource/grafana-pyroscope-datasource/webpack.config.ts
Joey 6796e66fb8
Pyroscope: Add standalone build (#80222)
* Pyroscope standalone build

* Fix for tests

* Add missing packages

* Remove import

* Update trace to profiles

* Update test
2024-01-16 12:46:15 +00:00

16 lines
424 B
TypeScript

import config from '@grafana/plugin-configs/webpack.config';
const configWithFallback = async (env: Record<string, unknown>) => {
const response = await config(env);
if (response !== undefined && response.resolve !== undefined) {
response.resolve.fallback = {
...response.resolve.fallback,
stream: false,
string_decoder: false,
};
}
return response;
};
export default configWithFallback;