fix(extension): apply Plasmo build workaround - remove engines constraint

- Remove 'engines' field from package.json (workaround for Plasmo issue #1040)
- Fix operator precedence in ChatInterface condition
- Resolves 'Failed to resolve popup.tsx' error

Note: Still encountering 'Unexpected token div' JSX error during build.
This appears to be a separate Plasmo bundler issue unrelated to our code changes.
This commit is contained in:
API Test Bot 2026-02-04 09:41:55 +07:00
parent cb9af89318
commit 773f2f3cf9
2 changed files with 1 additions and 5 deletions

View file

@ -131,7 +131,7 @@ export function ChatInterface() {
const captureChartMatch = content.match(COMMAND_PATTERNS.CAPTURE_CHART);
const generateThreadMatch = content.match(COMMAND_PATTERNS.GENERATE_THREAD);
if (addWatchlistMatch || content.toLowerCase().includes("add") && content.toLowerCase().includes("watchlist")) {
if (addWatchlistMatch || (content.toLowerCase().includes("add") && content.toLowerCase().includes("watchlist"))) {
// Add to watchlist command
const token = addWatchlistMatch?.[1] || tokenSymbol;
responseContent = `Done! ✅\n\nI've added ${token} to your watchlist.`;