feat(pyroscope): migrate to rspack
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/plugin-configs": "11.6.0-pre",
|
||||
"@rspack/cli": "^1.0.0",
|
||||
"@testing-library/dom": "10.4.0",
|
||||
"@testing-library/jest-dom": "6.6.3",
|
||||
"@testing-library/react": "16.2.0",
|
||||
@@ -35,16 +36,15 @@
|
||||
"jest": "29.7.0",
|
||||
"style-loader": "4.0.0",
|
||||
"ts-node": "10.9.2",
|
||||
"typescript": "5.7.3",
|
||||
"webpack": "5.97.1"
|
||||
"typescript": "5.7.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@grafana/runtime": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "webpack -c ./webpack.config.ts --env production",
|
||||
"build:commit": "webpack -c ./webpack.config.ts --env production --env commit=$(git rev-parse --short HEAD)",
|
||||
"dev": "webpack -w -c ./webpack.config.ts --env development"
|
||||
"build": "rspack -c ./rspack.config.ts --env production",
|
||||
"build:commit": "rspack -c ./rspack.config.ts --env production --env commit=$(git rev-parse --short HEAD)",
|
||||
"dev": "rspack -w -c ./rspack.config.ts --env development"
|
||||
},
|
||||
"packageManager": "yarn@4.6.0"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import config from '@grafana/plugin-configs/webpack.config';
|
||||
import config from '@grafana/plugin-configs/rspack.config';
|
||||
|
||||
const configWithFallback = async (env: Record<string, unknown>) => {
|
||||
const response = await config(env);
|
||||
Reference in New Issue
Block a user