diff --git a/guide/age-of-dwarves/tsconfig.json b/guide/age-of-dwarves/tsconfig.json index 3b3535af..f9455159 100644 --- a/guide/age-of-dwarves/tsconfig.json +++ b/guide/age-of-dwarves/tsconfig.json @@ -30,6 +30,9 @@ ], "@magic-civ/guide-engine": [ "../engine/src/index.ts" + ], + "@magic-civ/guide-engine/*": [ + "../engine/src/*" ] } }, diff --git a/guide/age-of-dwarves/vite.config.ts b/guide/age-of-dwarves/vite.config.ts index 5f22c087..f89a38b9 100644 --- a/guide/age-of-dwarves/vite.config.ts +++ b/guide/age-of-dwarves/vite.config.ts @@ -1,15 +1,17 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'path' +import { simCachePlugin } from './src/vite-plugins/simCachePlugin' const GAME_ID = process.env.VITE_GAME_ID ?? 'age-of-dwarves' export default defineConfig({ - plugins: [react()], + plugins: [react(), simCachePlugin()], resolve: { alias: { '@': path.resolve(__dirname, './src'), '@data': path.resolve(__dirname, `../../games/${GAME_ID}/data`), + '@worlds': path.resolve(__dirname, '../../engine/src/worlds'), '@magic-civ/engine-ts': path.resolve(__dirname, '../../packages/engine-ts/src/index.ts'), '@magic-civ/guide-engine': path.resolve(__dirname, '../engine/src/index.ts'), },