Skip to content

fix: update package.json and vite.config.ts#174

Merged
rtomas merged 1 commit intomainfrom
fix/siwx-issuw-polyfill
Jan 28, 2026
Merged

fix: update package.json and vite.config.ts#174
rtomas merged 1 commit intomainfrom
fix/siwx-issuw-polyfill

Conversation

@rtomas
Copy link
Contributor

@rtomas rtomas commented Jan 28, 2026

  • Change development server port to 3000 in package.json
  • Add node-globals-polyfill dependency
  • Update vite.config.ts to include NodeGlobalsPolyfillPlugin for better global variable handling

- Change development server port to 3000 in package.json
- Add node-globals-polyfill dependency
- Update vite.config.ts to include NodeGlobalsPolyfillPlugin for better global variable handling
@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
appkit-pay Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-javascript-bitcoin Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-javascript-ethers Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-javascript-solana Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-javascript-wagmi Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-next-bitcoin Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-next-ethers Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-next-multichain Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-next-solana Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-next-wagmi Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-react-bitcoin Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-react-core-up Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-react-ethers Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-react-ethers5 Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-react-multichain Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-react-solana Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-vue-bitcoin Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-vue-ethers Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-vue-multichain Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-vue-solana Ready Ready Preview, Comment Jan 28, 2026 3:53pm
appkit-web-examples-vue-wagmi Ready Ready Preview, Comment Jan 28, 2026 3:53pm
react-core-universal-connector Ready Ready Preview, Comment Jan 28, 2026 3:53pm

Request Review

@claude
Copy link

claude bot commented Jan 28, 2026

Claude finished @rtomas's task in 59s —— View job


🔍 Code Review

Found 3 issue(s)

Issue 1: Polyfill package misplaced in dependencies

ID: package-polyfill-placement-a7c4
File: react/react-wagmi-authentication-SIWX/package.json:13
Severity: LOW
Category: code_quality

Context:

  • Pattern: @esbuild-plugins/node-globals-polyfill added to dependencies instead of devDependencies
  • Risk: Build-time plugin included in production bundle unnecessarily, increasing package size
  • Impact: Larger node_modules in production deployments, confusion about runtime vs build dependencies
  • Trigger: Every production install/deployment

Recommendation: Move to devDependencies:

"devDependencies": {
  "@esbuild-plugins/node-globals-polyfill": "0.2.3",
  ...
}

Issue 2: Removed process.env polyfill may break code

ID: viteconfig-process-removed-f8e1
File: react/react-wagmi-authentication-SIWX/vite.config.ts:10-11
Severity: MEDIUM
Category: code_quality

Context:

  • Pattern: Original define: { 'process.env': {} } removed, replaced with global: 'globalThis' in esbuildOptions
  • Risk: Code using process.env will now throw ReferenceError instead of returning empty object
  • Impact: Runtime errors if any dependency or app code references process.env.*
  • Trigger: Any code path accessing process.env

Recommendation: Retain process.env polyfill alongside new globals:

optimizeDeps: {
  esbuildOptions: {
    define: {
      global: 'globalThis',
      'process.env': '{}'
    },
    plugins: [...]
  }
}

Issue 3: Version inconsistency across examples

ID: package-deps-mismatch-b2d9
File: react/react-wagmi-authentication-SIWX/package.json:17-21
Severity: LOW
Category: maintainability

Context:

  • Pattern: wagmi@^2.14.12, viem@^2.23.6, @tanstack/react-query@^5.56.2 vs other examples using wagmi@^2.18.0, viem@2.38.1, @tanstack/react-query@^5.90.3
  • Risk: Examples diverge in behavior due to different dependency versions, harder to maintain consistency
  • Impact: Inconsistent API behavior across examples, potential confusion for users copying code
  • Trigger: When users compare examples or report bugs specific to version differences

Recommendation: Align versions with other examples (react-wagmi):

"@tanstack/react-query": "^5.90.3",
"viem": "2.38.1",
"wagmi": "^2.18.0"

"preview": "vite preview"
},
"dependencies": {
"@esbuild-plugins/node-globals-polyfill": "0.2.3",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Auto Review Issue: Polyfill package misplaced in dependencies

Severity: LOW
Category: code_quality
Tool: Claude Auto Review

Context:

  • Pattern: @esbuild-plugins/node-globals-polyfill added to dependencies instead of devDependencies
  • Risk: Build-time plugin included in production bundle unnecessarily, increasing package size
  • Impact: Larger node_modules in production deployments, confusion about runtime vs build dependencies
  • Trigger: Every production install/deployment

Recommendation: Move to devDependencies:

"devDependencies": {
  "@esbuild-plugins/node-globals-polyfill": "0.2.3",
  ...
}

},
optimizeDeps: {
esbuildOptions: {
define: {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Auto Review Issue: Removed process.env polyfill may break code

Severity: MEDIUM
Category: code_quality
Tool: Claude Auto Review

Context:

  • Pattern: Original define: { 'process.env': {} } removed, replaced with global: 'globalThis' in esbuildOptions
  • Risk: Code using process.env will now throw ReferenceError instead of returning empty object
  • Impact: Runtime errors if any dependency or app code references process.env.*
  • Trigger: Any code path accessing process.env

Recommendation: Retain process.env polyfill alongside new globals:

optimizeDeps: {
  esbuildOptions: {
    define: {
      global: 'globalThis',
      'process.env': '{}'
    },
    plugins: [...]
  }
}

@rtomas rtomas merged commit 1d7aade into main Jan 28, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments