From e86428665535f4ef12b483e77f03659a2337fd8a Mon Sep 17 00:00:00 2001 From: Ben Leonard Date: Thu, 6 Nov 2025 13:37:12 +0000 Subject: [PATCH] Added a SASS alias for the block library path. This should be used in @use statements when library blocks are extended. --- theme-template/vite.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/theme-template/vite.config.js b/theme-template/vite.config.js index 49bfb4d..c08022e 100644 --- a/theme-template/vite.config.js +++ b/theme-template/vite.config.js @@ -43,6 +43,11 @@ export default defineConfig( host: DDEV_HOSTNAME, } }, + resolve: { + alias: { + '@block-library': '/../../mu-plugins/wordpress-blocks/blocks', + }, + }, } } );