From 81cfe3e782d34e31669096a474f42815bc7f34e2 Mon Sep 17 00:00:00 2001 From: Oscar Silver Date: Tue, 3 Dec 2024 09:48:48 +0100 Subject: [PATCH] Expose the aliases option from the Stylex babel plugin to react-strict-dom --- packages/react-strict-dom/babel/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react-strict-dom/babel/index.js b/packages/react-strict-dom/babel/index.js index d13f189..5249358 100644 --- a/packages/react-strict-dom/babel/index.js +++ b/packages/react-strict-dom/babel/index.js @@ -217,7 +217,8 @@ function reactStrictPlugin({ types: t }, options = {}) { const defaultOptions = { dev: true, debug: true, - rootDir: process.cwd() + rootDir: process.cwd(), + aliases: null }; function reactStrictPreset(_, options = {}) { @@ -243,7 +244,8 @@ function reactStrictPreset(_, options = {}) { rootDir: opts.rootDir //themeFileExtension: '.cssvars.js', }, - useRemForFontSize: false + useRemForFontSize: false, + aliases: opts.aliases } ] ]