Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 722 Bytes

File metadata and controls

39 lines (30 loc) · 722 Bytes

AppBuilderShared

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}/*"]
		}
	}
}