codetheweb / anylist

📋 a wrapper for AnyList's API (unoffical, reverse engineered)
81 stars 20 forks source link

Browser support #17

Open nios87 opened 2 years ago

nios87 commented 2 years ago

Hello i tried using this in a new react 17 project but there is alot of issues with Webpack 5 no longer polyfilling node.js

Example

image

codetheweb commented 2 years ago

This package isn't currently made to be run in a browser.

Happy to accept a PR that would allow it to work in both browsers and Node.js.

nios87 commented 2 years ago

Ah. I almost suspected that might be the case but was not sure. I have never made a package for npm my self so i'm not sure how to go about it.

I know i locally in my project can use this if i add a webpack config file and polyfill theese packages. Not sure if it would work if one where to add one of thoose config files in this package