Skip to content

chore: Add path-browserify and configure webpack resolve fallback#2

Open
clean99 wants to merge 1 commit intoFellouAI:mainfrom
clean99:fix/add-polyfill
Open

chore: Add path-browserify and configure webpack resolve fallback#2
clean99 wants to merge 1 commit intoFellouAI:mainfrom
clean99:fix/add-polyfill

Conversation

@clean99
Copy link

@clean99 clean99 commented Feb 15, 2025

Hi I've posted the issue on another repo: eko, here is my solution to make it work, thanks

This commit adds path-browserify as a dependency and configures webpack to use it as a fallback for the path module in browser environments. The changes include:

  • Adding path-browserify to package.json dependencies
  • Updating webpack configuration to resolve path module using path-browserify
  • Disabling native fs module for browser compatibility

Configure webpack to use path-browserify as a fallback for path resolution in browser environments, ensuring proper module handling.
@SSGEGYPT
Copy link

wants to join to your platform

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.

2 participants