diff --git a/packages/extension/wxt.config.js b/packages/extension/wxt.config.js index 6da3f4e..93c568a 100644 --- a/packages/extension/wxt.config.js +++ b/packages/extension/wxt.config.js @@ -9,12 +9,22 @@ mkdirSync(chromeProfile, { recursive: true }) export default defineConfig({ srcDir: 'src', modules: ['@wxt-dev/module-react'], - runner: { + webExt: { chromiumProfile: chromeProfile, keepProfileChanges: true, }, vite: () => ({ plugins: [tailwindcss()], + build: { + chunkSizeWarningLimit: 2000, + cssCodeSplit: true, + rollupOptions: { + onwarn: function (message, handler) { + if (message.code === 'EVAL') return + handler(message) + }, + }, + }, }), manifest: { name: 'Page Agent Ext',