From e5d525bc4c869f712743cfa44aa827daf7d59e6c Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Mon, 11 Dec 2023 15:10:03 +0100 Subject: [PATCH] chore(react-components): add "wyw-in-js" field for tag processor Adds `wyw-in-js` field to `package.json` to support styles processing with WyW-in-JS compiler (https://wyw-in-js.dev/). The plan is to use this compiler for Vite/esbuild plugins (https://github.com/microsoft/griffel/pull/41) and later switch our Webpack loader to it (https://github.com/microsoft/griffel/pull/414). --- ...t-components-623f5d14-335e-4a2a-aba0-b051b8cdb004.json | 7 +++++++ packages/react-components/react-components/package.json | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 change/@fluentui-react-components-623f5d14-335e-4a2a-aba0-b051b8cdb004.json diff --git a/change/@fluentui-react-components-623f5d14-335e-4a2a-aba0-b051b8cdb004.json b/change/@fluentui-react-components-623f5d14-335e-4a2a-aba0-b051b8cdb004.json new file mode 100644 index 0000000000000..3a28f3d275cd9 --- /dev/null +++ b/change/@fluentui-react-components-623f5d14-335e-4a2a-aba0-b051b8cdb004.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: add \"wyw-in-js\" field for tag processor", + "packageName": "@fluentui/react-components", + "email": "olfedias@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-components/package.json b/packages/react-components/react-components/package.json index 91aa9b0cdb0c5..732e33f273fa4 100644 --- a/packages/react-components/react-components/package.json +++ b/packages/react-components/react-components/package.json @@ -117,5 +117,11 @@ "lib", "lib-commonjs", "unstable" - ] + ], + "wyw-in-js": { + "tags": { + "makeStyles": "@griffel/tag-processor/make-styles", + "makeResetStyles": "@griffel/tag-processor/make-reset-styles" + } + } }