Ok - I think I understand now. I definitely think you don't need yarnpkg/core. That would involve your app downloading into memory into the users browser, and making sure that is ES5 compatible for older browsers.
ou can use skypack skypack.dev. Skypack is a CDN which serves packages for browser environments and node.js too. You can do something like
importreactfrom'https://cdn.skypack.dev/react';// react code works eg react.createElement(...)
These are optimised for browser - they might be for node too but I'm not entirely sure.
Ok - I think I understand now. I definitely think you don't need yarnpkg/core. That would involve your app downloading into memory into the users browser, and making sure that is ES5 compatible for older browsers.
ou can use skypack skypack.dev. Skypack is a CDN which serves packages for browser environments and node.js too. You can do something like
These are optimised for browser - they might be for node too but I'm not entirely sure.
Thank you, Jen. I need dynamic install packages on NodeJS web server.
Do you need to install it, or just serve it? skypack will work for node also. I haven't tried, but I imagine you can do something like