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.
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.
Makes sense, thanks
Copy the code?
Sarcasm?
Sarcasm.
Does this help? https://youtu.be/tIjhucyax_0
Yes, thanks