anvilco / node-anvil

Node API Client for Anvil
https://www.useanvil.com/developers/
18 stars 6 forks source link

Can this lib be used in the browser? #6

Open caub opened 4 years ago

caub commented 4 years ago

I integrated this lib in a web app, bundled with react-scripts and the bundle size increased a LOT

782.65 KB (+311.35 KB)  build/static/js/2.55253543.chunk.js

it makes me wonder if this lib is meant to be used in the browser (additionally to node)? For example formapi supports both node and browser targets, and adds 'only' 60KB in the bundle

caub commented 4 years ago

Well, it seems your API don't support CORS

Is this something you plan to do? @benogle

secretshardul commented 3 years ago

+1