N
Nuxt7mo ago
Ownix

How to provide a client-side dependency to my app?

For example, an API client on NPM like so https://www.npmjs.com/package/pocketbase#specify-typescript-definitions Any page/component should be able to use that from the browser.
npm
pocketbase
PocketBase JavaScript SDK. Latest version: 0.21.2, last published: 22 days ago. Start using pocketbase in your project by running npm i pocketbase. There are 49 other projects in the npm registry using pocketbase.
1 Reply
Ownix
OwnixOP7mo ago
Should I even bother making it a plugin and instead simply import the pocketbase module in the components/pages that use it?
Want results from more Discord servers?
Add your server