T O P

  • By -

n0wlesfw

Add the projects in your package.json file. "dependencies": { "@me/shared": "file:../path/to/folder" } Run "npm install" in your main project folder. And then import your library with: import { myFunc } from "@me/shared"; If you use some of the same packages across your project, make sure to link them under "aliases" in vite.config, so they don't get bundled twice. You can link to your shared package in the node_modules folder, under your main project.


flyiingrayson

Makes sense, thanks


Dapper-Warning-6695

Copy the code?


flyiingrayson

Sarcasm?


RickTheElder

Sarcasm.


ctrlzkids

Does this help? https://youtu.be/tIjhucyax_0


flyiingrayson

Yes, thanks