# What this PR does Migrate from grafana-toolkit to grafana plugin tools ## Which issue(s) this PR fixes https://github.com/grafana/oncall/issues/3651 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) --------- Co-authored-by: Michael Derynck <michael.derynck@grafana.com> Co-authored-by: Dominik <dominik.broj@grafana.com>
31 lines
891 B
JavaScript
31 lines
891 B
JavaScript
/*
|
|
* ⚠️⚠️⚠️ THIS FILE WAS SCAFFOLDED BY `@grafana/create-plugin`. DO NOT EDIT THIS FILE DIRECTLY. ⚠️⚠️⚠️
|
|
*
|
|
* In order to extend the configuration follow the steps in .config/README.md
|
|
*/
|
|
|
|
/*
|
|
* This utility function is useful in combination with jest `transformIgnorePatterns` config
|
|
* to transform specific packages (e.g.ES modules) in a projects node_modules folder.
|
|
*/
|
|
const nodeModulesToTransform = (moduleNames) => `node_modules\/(?!.*(${moduleNames.join('|')})\/.*)`;
|
|
|
|
// Array of known nested grafana package dependencies that only bundle an ESM version
|
|
const grafanaESModules = [
|
|
'.pnpm', // Support using pnpm symlinked packages
|
|
'@grafana/schema',
|
|
'd3',
|
|
'd3-color',
|
|
'd3-force',
|
|
'd3-interpolate',
|
|
'd3-scale-chromatic',
|
|
'ol',
|
|
'react-colorful',
|
|
'rxjs',
|
|
'uuid',
|
|
];
|
|
|
|
module.exports = {
|
|
nodeModulesToTransform,
|
|
grafanaESModules,
|
|
};
|