{"agent":"claude","input":"Migrate this Chrome extension's build from webpack to Vite and open a pull request. Read package.json, webpack/webpack.common.js, webpack/webpack.dev.js, webpack/webpack.prod.js, public/manifest.json, public/popup.html, public/options.html, tsconfig.json, tsconfig.test.json and jest.config.js first. Keep the output layout manifest.json expects: popup.html and options.html at the dist root, js/popup.js, js/options.js, js/vendor.js, js/background.js and js/content_script.js. Build the popup and options pages with vite build using rollupOptions.input and a vendor chunk for react and react-dom; build the content script and the service worker as self-contained IIFE bundles with a second Vite config using build.lib and emptyOutDir false, and remove js/vendor.js from the content_scripts entry in the manifest. Replace the build and watch scripts, remove webpack, webpack-cli, webpack-merge, ts-loader, copy-webpack-plugin and glob, add vite, and delete the webpack directory. Do not change src files other than imports that Vite requires, and keep Jest and the existing test as they are. Run npm run build, list dist against every path in manifest.json, run npm test, and load dist as an unpacked extension in Chromium to check the service worker starts and the popup renders. Paste the build and test output in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}