React hooks and components shared by ShapeDiver App Builder and other projects. This might eventually become an npm package.
Set @AppBuilderShared
alias for the package directory
e.g. {librarypath} = src/shared
Vite (vite.config.ts)
{
resolve: {
alias: {
"@AppBuilderShared": path.resolve(__dirname, "./{librarypath}"),
},
},
}
Typescript (tsconfig.json)
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@AppBuilderShared/*": ["./{librarypath}/*"]
}
}
}