Migrate agent webpack-plugin to v5

RelativeCI agent v5 introduces overall improvements, normalizes the environment variable extraction, and decreases the installation footprint.

Step 1. Install @relative-ci/webpack-plugin

# Uninstall @relative-ci/agent@v4
npm uninstall --save-dev @relative-ci/agent
# Install @relative-ci/webpack-plugin@v5
npm install --save-dev @relative-ci/webpack-plugin
# Uninstall @relative-ci/agent@v4
yarn remove @relative-ci/agent
# Install @relative-ci/webpack-plugin@v5
yarn add --dev @relative-ci/webpack-plugin
# Uninstall @relative-ci/agent@v4
pnpm remove --save-dev @relative-ci/agent
# Install @relative-ci/webpack-plugin@v5
pnpm add --save-dev @relative-ci/webpack-plugin

Step 2. Update webpack configuration

webpack.config.js
- const { RelativeCiAgentWebpackPlugin } = require('@relative-ci/agent');
+ const RelativeCIAgentPlugin = require('@relative-ci/webpack-plugin');
module.exports = {
// ... your webpack config
plugins: [
// ... other plugins
- new RelativeCiAgentWebpackPlugin()
+ new RelativeCIAgentPlugin()
]
};