diff --git a/public/app/plugins/datasource/grafana-postgresql-datasource/package.json b/public/app/plugins/datasource/grafana-postgresql-datasource/package.json index 6cf8a965548..4af5765513c 100644 --- a/public/app/plugins/datasource/grafana-postgresql-datasource/package.json +++ b/public/app/plugins/datasource/grafana-postgresql-datasource/package.json @@ -18,6 +18,7 @@ "devDependencies": { "@grafana/e2e-selectors": "11.6.0-pre", "@grafana/plugin-configs": "11.6.0-pre", + "@rspack/cli": "^1.0.0", "@testing-library/dom": "10.4.0", "@testing-library/react": "16.2.0", "@testing-library/user-event": "14.6.1", @@ -26,16 +27,15 @@ "@types/node": "22.12.0", "@types/react": "18.3.18", "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" } diff --git a/public/app/plugins/datasource/grafana-postgresql-datasource/webpack.config.ts b/public/app/plugins/datasource/grafana-postgresql-datasource/rspack.config.ts similarity index 57% rename from public/app/plugins/datasource/grafana-postgresql-datasource/webpack.config.ts rename to public/app/plugins/datasource/grafana-postgresql-datasource/rspack.config.ts index 55a880fef5c..9360cb088d9 100644 --- a/public/app/plugins/datasource/grafana-postgresql-datasource/webpack.config.ts +++ b/public/app/plugins/datasource/grafana-postgresql-datasource/rspack.config.ts @@ -1,4 +1,4 @@ -import config from '@grafana/plugin-configs/webpack.config'; +import config from '@grafana/plugin-configs/rspack.config'; // eslint-disable-next-line no-barrel-files/no-barrel-files export default config;