Skip to content

Commit

Permalink
alias for topology packages
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Aug 22, 2024
1 parent c5ef2a6 commit 3c27f16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/canvas/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "vite";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import path from "path";

export default defineConfig({
build: {
Expand All @@ -11,4 +12,9 @@ export default defineConfig({
target: "esnext",
},
},
resolve: {
alias: {
"@topology-foundation": path.resolve(__dirname, "../../packages"),
},
},
});
6 changes: 6 additions & 0 deletions examples/chat/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "vite";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import path from "path";

export default defineConfig({
build: {
Expand All @@ -17,4 +18,9 @@ export default defineConfig({
target: "esnext",
},
},
resolve: {
alias: {
"@topology-foundation": path.resolve(__dirname, "../../packages"),
},
},
});

0 comments on commit 3c27f16

Please sign in to comment.