From 2fac1a139149bd13b76b1306207bc988dca9c72c Mon Sep 17 00:00:00 2001 From: Tristan Watanabe Date: Tue, 21 Mar 2023 14:10:20 -0400 Subject: [PATCH] chore(v9 packages): Migrate to SWC transpilation approach (#27250) * chore: run migration generator * Change Files * chore: remove browser targets, use ecma target es2019 * Update Change Files comment * nit: order package.json deps alphabetically * nit(babel-preset-storybook): aphabetical order * chore(react-table): remove out of scope changes that add e2e scripts --------- Co-authored-by: Martin Hochel --- ...-ecea0dfb-4c5c-4633-bcf3-8b32d8dea2a0.json | 7 +++++ ...-026f7972-3fe9-44ae-b7fd-a04a18f23f02.json | 7 +++++ ...-0d5b2e98-10e4-4d37-918c-0f5237921881.json | 7 +++++ ...-290773a5-58ea-4b71-bd23-e0c1c8aa6584.json | 7 +++++ ...-6b409706-485a-4ca6-ad10-77f4526d3c2f.json | 7 +++++ ...-4ab47bab-9390-4520-b16f-db73ef9d1bc0.json | 7 +++++ ...-7af460f7-0569-41f0-a969-e37514404461.json | 7 +++++ ...-6db11330-214e-427f-b5e1-da8642f7233a.json | 7 +++++ ...-9e683c69-3678-4789-98ec-a8a3c3c61fa7.json | 7 +++++ ...-972920c1-ed9b-417b-ae4a-04106be26de6.json | 7 +++++ ...-35dda19d-240c-427b-89c6-a9cbb56c646f.json | 7 +++++ ...-0411d36e-fe24-49d3-b628-e410d35cda3d.json | 7 +++++ ...-32859781-5620-416d-b840-7a93255b3ba6.json | 7 +++++ ...-312e0907-d5d3-4e79-8a1f-2ba1e84c7d12.json | 7 +++++ ...-d0fd3169-05c4-4066-9982-949bbb5bc4b6.json | 7 +++++ ...-22987fd2-575c-4cb9-9a87-0a89589dccc5.json | 7 +++++ ...-3e4914a9-7105-4dce-895e-88bd94223bcf.json | 7 +++++ ...-082fcf1b-1284-49e6-b6f0-7eb4f9b615bb.json | 7 +++++ ...-038ed1ca-f1cd-4b22-b7dd-9d4b839fe863.json | 7 +++++ ...-2c16f652-95a3-4d7a-a514-3687a4ccd80c.json | 7 +++++ ...-17168a1d-b127-4d79-beb6-714902505d20.json | 7 +++++ ...-9f1179cb-baf9-47fb-909b-767680595cb9.json | 7 +++++ ...-443e222c-e8c3-46ba-b299-90e868740038.json | 7 +++++ ...-3ffc47cc-1dca-4cf7-84c2-a5d19addbbaa.json | 7 +++++ ...-d832e42b-819e-4167-aa51-25b94cbdf05f.json | 7 +++++ ...-2af75d56-1848-4f1b-8333-e6f7384bbe29.json | 7 +++++ ...-5ba036c3-a5e8-4cc4-b6d1-1020d12a8759.json | 7 +++++ ...-ca085ca6-813e-4855-adc1-098fbeb61d18.json | 7 +++++ ...-63999f8c-a3de-4ef8-a4f5-4ee448629efd.json | 7 +++++ ...-4ff8be4f-cd07-4452-a7c0-ee00e736beea.json | 7 +++++ ...-8082ae8b-d385-4c45-8edf-f30e9d668d43.json | 7 +++++ ...-06517dd0-5c2c-425e-bf93-2658b4722cde.json | 7 +++++ ...-fd76d55d-8512-4bd2-b7c5-dc01d66c3cd4.json | 7 +++++ ...-74f5181a-e9b7-411e-9690-194185bac55a.json | 7 +++++ ...-3b013070-ade7-4012-b765-30e41873c815.json | 7 +++++ ...-2606fc2c-66a8-40ad-a64c-88632a802566.json | 7 +++++ ...-f3dd21f1-5929-469e-9dcd-4716061287b4.json | 7 +++++ ...-d7932c4d-1b41-4d11-ab77-171ff745e1b3.json | 7 +++++ ...-6cc38ee5-1ca6-491b-92ef-921da2f3965c.json | 7 +++++ ...-4d8c5d77-c91b-4cea-93d1-f0fd18e093a3.json | 7 +++++ ...-53c9ae6c-f676-4e59-a3d3-b03bda1f48fa.json | 7 +++++ ...-54f71a0f-6d1a-4e35-b2f4-ec6eb88177a1.json | 7 +++++ ...-dd5e787a-9178-4189-8505-15c72520d0d2.json | 7 +++++ ...-d84b4430-0bbd-44c2-8cab-0063b41030d4.json | 7 +++++ ...-1db6b84c-0ff1-4b5d-9e6f-8975c59244ad.json | 7 +++++ ...-7d149a7e-f686-451a-9660-b62410e7684b.json | 7 +++++ ...-d4be52b5-5ee9-4415-a9ee-5220b260b504.json | 7 +++++ ...-81e88b33-2403-42bd-b118-21ac9d543269.json | 7 +++++ ...-f459fd9b-96a4-4403-a88a-b2775929460a.json | 7 +++++ ...-e8d1e0ee-24d5-4f12-9002-fa7521877eaf.json | 7 +++++ ...-c580d16d-b654-49df-86f1-fed96a424bf2.json | 7 +++++ ...-90125ad7-5d01-48b7-b70d-5e49ea09898e.json | 7 +++++ ...-fd67d56c-41bf-4bf9-9be3-9551622d501e.json | 7 +++++ ...-21215b85-3300-4410-b6e8-342ade6acab8.json | 7 +++++ ...-fa65f315-1479-43e7-aede-a6102da2bfab.json | 7 +++++ ...-4c7e9860-d458-42a6-a425-d0e4cf00173e.json | 7 +++++ ...-9c9c3b84-f51e-4a0e-b914-95967b77cd12.json | 7 +++++ package.json | 1 + .../babel-preset-global-context/.babelrc.json | 1 - .../babel-preset-global-context/.swcrc | 30 +++++++++++++++++++ .../just.config.ts | 4 ++- .../babel-preset-global-context/package.json | 6 ++-- .../.babelrc.json | 1 - .../babel-preset-storybook-full-source/.swcrc | 30 +++++++++++++++++++ .../just.config.ts | 4 ++- .../package.json | 6 ++-- .../global-context/.babelrc.json | 1 - .../react-components/global-context/.swcrc | 30 +++++++++++++++++++ .../global-context/just.config.ts | 4 ++- .../global-context/package.json | 4 +-- .../keyboard-keys/.babelrc.json | 1 - .../react-components/keyboard-keys/.swcrc | 30 +++++++++++++++++++ .../keyboard-keys/just.config.ts | 4 ++- .../keyboard-keys/package.json | 4 +-- .../priority-overflow/.babelrc.json | 1 - .../react-components/priority-overflow/.swcrc | 30 +++++++++++++++++++ .../priority-overflow/just.config.ts | 4 ++- .../priority-overflow/package.json | 4 +-- .../react-accordion/.babelrc.json | 2 +- .../react-components/react-accordion/.swcrc | 30 +++++++++++++++++++ .../react-accordion/just.config.ts | 4 ++- .../react-accordion/package.json | 4 +-- .../react-alert/.babelrc.json | 2 +- packages/react-components/react-alert/.swcrc | 30 +++++++++++++++++++ .../react-alert/just.config.ts | 4 ++- .../react-components/react-alert/package.json | 4 +-- .../react-components/react-aria/.babelrc.json | 1 - packages/react-components/react-aria/.swcrc | 30 +++++++++++++++++++ .../react-aria/just.config.ts | 4 ++- .../react-components/react-aria/package.json | 4 +-- .../react-avatar-context/.babelrc.json | 2 +- .../react-avatar-context/.swcrc | 30 +++++++++++++++++++ .../react-avatar-context/just.config.ts | 4 ++- .../react-avatar-context/package.json | 4 +-- .../react-avatar/.babelrc.json | 2 +- packages/react-components/react-avatar/.swcrc | 30 +++++++++++++++++++ .../react-avatar/just.config.ts | 4 ++- .../react-avatar/package.json | 4 +-- .../react-badge/.babelrc.json | 2 +- packages/react-components/react-badge/.swcrc | 30 +++++++++++++++++++ .../react-badge/just.config.ts | 4 ++- .../react-components/react-badge/package.json | 4 +-- .../react-breadcrumb/.babelrc.json | 2 +- .../react-components/react-breadcrumb/.swcrc | 30 +++++++++++++++++++ .../react-breadcrumb/just.config.ts | 4 ++- .../react-breadcrumb/package.json | 4 +-- .../react-button/.babelrc.json | 2 +- packages/react-components/react-button/.swcrc | 30 +++++++++++++++++++ .../react-button/just.config.ts | 4 ++- .../react-button/package.json | 4 +-- .../react-components/react-card/.babelrc.json | 2 +- packages/react-components/react-card/.swcrc | 30 +++++++++++++++++++ .../react-card/just.config.ts | 4 ++- .../react-components/react-card/package.json | 4 +-- .../react-checkbox/.babelrc.json | 2 +- .../react-components/react-checkbox/.swcrc | 30 +++++++++++++++++++ .../react-checkbox/just.config.ts | 4 ++- .../react-checkbox/package.json | 4 +-- .../react-combobox/.babelrc.json | 2 +- .../react-components/react-combobox/.swcrc | 30 +++++++++++++++++++ .../react-combobox/just.config.ts | 4 ++- .../react-combobox/package.json | 4 +-- .../react-components/.babelrc.json | 2 +- .../react-components/react-components/.swcrc | 30 +++++++++++++++++++ .../react-components/just.config.ts | 4 ++- .../react-components/package.json | 8 ++--- .../react-conformance-griffel/.babelrc.json | 3 ++ .../react-conformance-griffel/.swcrc | 30 +++++++++++++++++++ .../react-conformance-griffel/just.config.ts | 2 +- .../react-conformance-griffel/package.json | 4 +-- .../react-context-selector/.babelrc.json | 1 - .../react-context-selector/.swcrc | 30 +++++++++++++++++++ .../react-context-selector/just.config.ts | 4 ++- .../react-context-selector/package.json | 4 +-- .../.babelrc.json | 1 - .../react-data-grid-react-window/.swcrc | 30 +++++++++++++++++++ .../just.config.ts | 4 ++- .../react-data-grid-react-window/package.json | 8 ++--- .../react-datepicker-compat/.babelrc.json | 2 +- .../react-datepicker-compat/.swcrc | 30 +++++++++++++++++++ .../react-datepicker-compat/just.config.ts | 4 ++- .../react-datepicker-compat/package.json | 4 +-- .../react-dialog/.babelrc.json | 2 +- packages/react-components/react-dialog/.swcrc | 30 +++++++++++++++++++ .../react-dialog/just.config.ts | 4 ++- .../react-dialog/package.json | 4 +-- .../react-divider/.babelrc.json | 2 +- .../react-components/react-divider/.swcrc | 30 +++++++++++++++++++ .../react-divider/just.config.ts | 4 ++- .../react-divider/package.json | 4 +-- .../react-drawer/.babelrc.json | 2 +- packages/react-components/react-drawer/.swcrc | 30 +++++++++++++++++++ .../react-drawer/just.config.ts | 4 ++- .../react-drawer/package.json | 4 +-- .../react-field/.babelrc.json | 2 +- packages/react-components/react-field/.swcrc | 30 +++++++++++++++++++ .../react-field/just.config.ts | 4 ++- .../react-components/react-field/package.json | 4 +-- .../react-image/.babelrc.json | 2 +- packages/react-components/react-image/.swcrc | 30 +++++++++++++++++++ .../react-image/just.config.ts | 4 ++- .../react-components/react-image/package.json | 4 +-- .../react-infobutton/.babelrc.json | 2 +- .../react-components/react-infobutton/.swcrc | 30 +++++++++++++++++++ .../react-infobutton/just.config.ts | 4 ++- .../react-infobutton/package.json | 4 +-- .../react-input/.babelrc.json | 2 +- packages/react-components/react-input/.swcrc | 30 +++++++++++++++++++ .../react-input/just.config.ts | 4 ++- .../react-components/react-input/package.json | 4 +-- .../react-label/.babelrc.json | 2 +- packages/react-components/react-label/.swcrc | 30 +++++++++++++++++++ .../react-label/just.config.ts | 4 ++- .../react-components/react-label/package.json | 4 +-- .../react-components/react-link/.babelrc.json | 2 +- packages/react-components/react-link/.swcrc | 30 +++++++++++++++++++ .../react-link/just.config.ts | 4 ++- .../react-components/react-link/package.json | 4 +-- .../react-components/react-menu/.babelrc.json | 2 +- packages/react-components/react-menu/.swcrc | 30 +++++++++++++++++++ .../react-menu/just.config.ts | 4 ++- .../react-components/react-menu/package.json | 4 +-- .../react-migration-v0-v9/.babelrc.json | 2 +- .../react-migration-v0-v9/.swcrc | 30 +++++++++++++++++++ .../react-migration-v0-v9/just.config.ts | 4 ++- .../react-migration-v0-v9/package.json | 6 ++-- .../react-migration-v8-v9/.babelrc.json | 2 +- .../react-migration-v8-v9/.swcrc | 30 +++++++++++++++++++ .../react-migration-v8-v9/just.config.ts | 4 ++- .../react-migration-v8-v9/package.json | 4 +-- .../react-overflow/.babelrc.json | 2 +- .../react-components/react-overflow/.swcrc | 30 +++++++++++++++++++ .../react-overflow/just.config.ts | 4 ++- .../react-overflow/package.json | 4 +-- .../react-persona/.babelrc.json | 2 +- .../react-components/react-persona/.swcrc | 30 +++++++++++++++++++ .../react-persona/just.config.ts | 4 ++- .../react-persona/package.json | 4 +-- .../react-popover/.babelrc.json | 2 +- .../react-components/react-popover/.swcrc | 30 +++++++++++++++++++ .../react-popover/just.config.ts | 4 ++- .../react-popover/package.json | 4 +-- .../react-portal-compat-context/.babelrc.json | 1 - .../react-portal-compat-context/.swcrc | 30 +++++++++++++++++++ .../just.config.ts | 4 ++- .../react-portal-compat-context/package.json | 4 +-- .../react-portal-compat/.babelrc.json | 1 - .../react-portal-compat/.swcrc | 30 +++++++++++++++++++ .../react-portal-compat/just.config.ts | 4 ++- .../react-portal-compat/package.json | 4 +-- .../react-portal/.babelrc.json | 2 +- packages/react-components/react-portal/.swcrc | 30 +++++++++++++++++++ .../react-portal/just.config.ts | 4 ++- .../react-portal/package.json | 4 +-- .../react-positioning/.babelrc.json | 2 +- .../react-components/react-positioning/.swcrc | 30 +++++++++++++++++++ .../react-positioning/just.config.ts | 4 ++- .../react-positioning/package.json | 4 +-- .../react-progress/.babelrc.json | 2 +- .../react-components/react-progress/.swcrc | 30 +++++++++++++++++++ .../react-progress/just.config.ts | 4 ++- .../react-progress/package.json | 4 +-- .../react-provider/.babelrc.json | 23 +++++++++++++- .../react-components/react-provider/.swcrc | 30 +++++++++++++++++++ .../react-provider/just.config.ts | 4 ++- .../react-provider/package.json | 4 +-- .../react-radio/.babelrc.json | 2 +- packages/react-components/react-radio/.swcrc | 30 +++++++++++++++++++ .../react-radio/just.config.ts | 4 ++- .../react-components/react-radio/package.json | 4 +-- .../react-select/.babelrc.json | 2 +- packages/react-components/react-select/.swcrc | 30 +++++++++++++++++++ .../react-select/just.config.ts | 4 ++- .../react-select/package.json | 4 +-- .../react-shared-contexts/.babelrc.json | 1 - .../react-shared-contexts/.swcrc | 30 +++++++++++++++++++ .../react-shared-contexts/just.config.ts | 4 ++- .../react-shared-contexts/package.json | 4 +-- .../react-skeleton/.babelrc.json | 2 +- .../react-components/react-skeleton/.swcrc | 30 +++++++++++++++++++ .../react-skeleton/just.config.ts | 4 ++- .../react-skeleton/package.json | 4 +-- .../react-slider/.babelrc.json | 2 +- packages/react-components/react-slider/.swcrc | 30 +++++++++++++++++++ .../react-slider/just.config.ts | 4 ++- .../react-slider/package.json | 4 +-- .../react-spinbutton/.babelrc.json | 2 +- .../react-components/react-spinbutton/.swcrc | 30 +++++++++++++++++++ .../react-spinbutton/just.config.ts | 4 ++- .../react-spinbutton/package.json | 4 +-- .../react-spinner/.babelrc.json | 2 +- .../react-components/react-spinner/.swcrc | 30 +++++++++++++++++++ .../react-spinner/just.config.ts | 4 ++- .../react-spinner/package.json | 4 +-- .../.babelrc.json | 3 +- .../react-storybook-addon-codesandbox/.swcrc | 30 +++++++++++++++++++ .../just.config.ts | 4 ++- .../package.json | 10 +++---- .../react-storybook-addon/.babelrc.json | 1 - .../react-storybook-addon/.swcrc | 30 +++++++++++++++++++ .../react-storybook-addon/just.config.ts | 4 ++- .../react-storybook-addon/package.json | 7 ++--- .../react-switch/.babelrc.json | 2 +- packages/react-components/react-switch/.swcrc | 30 +++++++++++++++++++ .../react-switch/just.config.ts | 4 ++- .../react-switch/package.json | 4 +-- .../react-table/.babelrc.json | 2 +- packages/react-components/react-table/.swcrc | 30 +++++++++++++++++++ .../react-table/just.config.ts | 4 ++- .../react-components/react-table/package.json | 4 +-- .../react-components/react-tabs/.babelrc.json | 2 +- packages/react-components/react-tabs/.swcrc | 30 +++++++++++++++++++ .../react-tabs/just.config.ts | 4 ++- .../react-components/react-tabs/package.json | 4 +-- .../react-tabster/.babelrc.json | 2 +- .../react-components/react-tabster/.swcrc | 30 +++++++++++++++++++ .../react-tabster/just.config.ts | 4 ++- .../react-tabster/package.json | 6 ++-- .../react-components/react-tags/.babelrc.json | 2 +- packages/react-components/react-tags/.swcrc | 30 +++++++++++++++++++ .../react-tags/just.config.ts | 4 ++- .../react-components/react-tags/package.json | 4 +-- .../react-components/react-text/.babelrc.json | 2 +- packages/react-components/react-text/.swcrc | 30 +++++++++++++++++++ .../react-text/just.config.ts | 4 ++- .../react-components/react-text/package.json | 4 +-- .../react-textarea/.babelrc.json | 2 +- .../react-components/react-textarea/.swcrc | 30 +++++++++++++++++++ .../react-textarea/just.config.ts | 4 ++- .../react-textarea/package.json | 4 +-- .../react-theme-sass/.babelrc.json | 1 - .../react-components/react-theme-sass/.swcrc | 30 +++++++++++++++++++ .../react-theme-sass/just.config.ts | 4 ++- .../react-theme-sass/package.json | 6 ++-- .../react-theme/.babelrc.json | 1 - packages/react-components/react-theme/.swcrc | 30 +++++++++++++++++++ .../react-theme/just.config.ts | 4 ++- .../react-components/react-theme/package.json | 6 ++-- .../react-toolbar/.babelrc.json | 2 +- .../react-components/react-toolbar/.swcrc | 30 +++++++++++++++++++ .../react-toolbar/just.config.ts | 4 ++- .../react-toolbar/package.json | 4 +-- .../react-tooltip/.babelrc.json | 2 +- .../react-components/react-tooltip/.swcrc | 30 +++++++++++++++++++ .../react-tooltip/just.config.ts | 4 ++- .../react-tooltip/package.json | 4 +-- .../react-components/react-tree/.babelrc.json | 2 +- packages/react-components/react-tree/.swcrc | 30 +++++++++++++++++++ .../react-tree/just.config.ts | 4 ++- .../react-components/react-tree/package.json | 4 +-- .../react-utilities/.babelrc.json | 1 - .../react-components/react-utilities/.swcrc | 30 +++++++++++++++++++ .../react-utilities/just.config.ts | 4 ++- .../react-utilities/package.json | 4 +-- .../react-virtualizer/.babelrc.json | 2 +- .../react-components/react-virtualizer/.swcrc | 30 +++++++++++++++++++ .../react-virtualizer/just.config.ts | 4 ++- .../react-virtualizer/package.json | 4 +-- .../theme-designer/.babelrc.json | 2 +- .../react-components/theme-designer/.swcrc | 30 +++++++++++++++++++ .../theme-designer/just.config.ts | 4 ++- .../theme-designer/package.json | 6 ++-- packages/tokens/.babelrc.json | 2 +- packages/tokens/.swcrc | 30 +++++++++++++++++++ packages/tokens/just.config.ts | 4 ++- packages/tokens/package.json | 4 +-- yarn.lock | 2 +- 327 files changed, 2832 insertions(+), 287 deletions(-) create mode 100644 change/@fluentui-babel-preset-global-context-ecea0dfb-4c5c-4633-bcf3-8b32d8dea2a0.json create mode 100644 change/@fluentui-global-context-026f7972-3fe9-44ae-b7fd-a04a18f23f02.json create mode 100644 change/@fluentui-keyboard-keys-0d5b2e98-10e4-4d37-918c-0f5237921881.json create mode 100644 change/@fluentui-priority-overflow-290773a5-58ea-4b71-bd23-e0c1c8aa6584.json create mode 100644 change/@fluentui-react-accordion-6b409706-485a-4ca6-ad10-77f4526d3c2f.json create mode 100644 change/@fluentui-react-alert-4ab47bab-9390-4520-b16f-db73ef9d1bc0.json create mode 100644 change/@fluentui-react-aria-7af460f7-0569-41f0-a969-e37514404461.json create mode 100644 change/@fluentui-react-avatar-6db11330-214e-427f-b5e1-da8642f7233a.json create mode 100644 change/@fluentui-react-badge-9e683c69-3678-4789-98ec-a8a3c3c61fa7.json create mode 100644 change/@fluentui-react-button-972920c1-ed9b-417b-ae4a-04106be26de6.json create mode 100644 change/@fluentui-react-card-35dda19d-240c-427b-89c6-a9cbb56c646f.json create mode 100644 change/@fluentui-react-checkbox-0411d36e-fe24-49d3-b628-e410d35cda3d.json create mode 100644 change/@fluentui-react-combobox-32859781-5620-416d-b840-7a93255b3ba6.json create mode 100644 change/@fluentui-react-components-312e0907-d5d3-4e79-8a1f-2ba1e84c7d12.json create mode 100644 change/@fluentui-react-conformance-griffel-d0fd3169-05c4-4066-9982-949bbb5bc4b6.json create mode 100644 change/@fluentui-react-context-selector-22987fd2-575c-4cb9-9a87-0a89589dccc5.json create mode 100644 change/@fluentui-react-data-grid-react-window-3e4914a9-7105-4dce-895e-88bd94223bcf.json create mode 100644 change/@fluentui-react-dialog-082fcf1b-1284-49e6-b6f0-7eb4f9b615bb.json create mode 100644 change/@fluentui-react-divider-038ed1ca-f1cd-4b22-b7dd-9d4b839fe863.json create mode 100644 change/@fluentui-react-field-2c16f652-95a3-4d7a-a514-3687a4ccd80c.json create mode 100644 change/@fluentui-react-image-17168a1d-b127-4d79-beb6-714902505d20.json create mode 100644 change/@fluentui-react-infobutton-9f1179cb-baf9-47fb-909b-767680595cb9.json create mode 100644 change/@fluentui-react-input-443e222c-e8c3-46ba-b299-90e868740038.json create mode 100644 change/@fluentui-react-label-3ffc47cc-1dca-4cf7-84c2-a5d19addbbaa.json create mode 100644 change/@fluentui-react-link-d832e42b-819e-4167-aa51-25b94cbdf05f.json create mode 100644 change/@fluentui-react-menu-2af75d56-1848-4f1b-8333-e6f7384bbe29.json create mode 100644 change/@fluentui-react-migration-v8-v9-5ba036c3-a5e8-4cc4-b6d1-1020d12a8759.json create mode 100644 change/@fluentui-react-overflow-ca085ca6-813e-4855-adc1-098fbeb61d18.json create mode 100644 change/@fluentui-react-persona-63999f8c-a3de-4ef8-a4f5-4ee448629efd.json create mode 100644 change/@fluentui-react-popover-4ff8be4f-cd07-4452-a7c0-ee00e736beea.json create mode 100644 change/@fluentui-react-portal-8082ae8b-d385-4c45-8edf-f30e9d668d43.json create mode 100644 change/@fluentui-react-portal-compat-06517dd0-5c2c-425e-bf93-2658b4722cde.json create mode 100644 change/@fluentui-react-portal-compat-context-fd76d55d-8512-4bd2-b7c5-dc01d66c3cd4.json create mode 100644 change/@fluentui-react-positioning-74f5181a-e9b7-411e-9690-194185bac55a.json create mode 100644 change/@fluentui-react-progress-3b013070-ade7-4012-b765-30e41873c815.json create mode 100644 change/@fluentui-react-provider-2606fc2c-66a8-40ad-a64c-88632a802566.json create mode 100644 change/@fluentui-react-radio-f3dd21f1-5929-469e-9dcd-4716061287b4.json create mode 100644 change/@fluentui-react-select-d7932c4d-1b41-4d11-ab77-171ff745e1b3.json create mode 100644 change/@fluentui-react-shared-contexts-6cc38ee5-1ca6-491b-92ef-921da2f3965c.json create mode 100644 change/@fluentui-react-skeleton-4d8c5d77-c91b-4cea-93d1-f0fd18e093a3.json create mode 100644 change/@fluentui-react-slider-53c9ae6c-f676-4e59-a3d3-b03bda1f48fa.json create mode 100644 change/@fluentui-react-spinbutton-54f71a0f-6d1a-4e35-b2f4-ec6eb88177a1.json create mode 100644 change/@fluentui-react-spinner-dd5e787a-9178-4189-8505-15c72520d0d2.json create mode 100644 change/@fluentui-react-switch-d84b4430-0bbd-44c2-8cab-0063b41030d4.json create mode 100644 change/@fluentui-react-table-1db6b84c-0ff1-4b5d-9e6f-8975c59244ad.json create mode 100644 change/@fluentui-react-tabs-7d149a7e-f686-451a-9660-b62410e7684b.json create mode 100644 change/@fluentui-react-tabster-d4be52b5-5ee9-4415-a9ee-5220b260b504.json create mode 100644 change/@fluentui-react-text-81e88b33-2403-42bd-b118-21ac9d543269.json create mode 100644 change/@fluentui-react-textarea-f459fd9b-96a4-4403-a88a-b2775929460a.json create mode 100644 change/@fluentui-react-theme-e8d1e0ee-24d5-4f12-9002-fa7521877eaf.json create mode 100644 change/@fluentui-react-theme-sass-c580d16d-b654-49df-86f1-fed96a424bf2.json create mode 100644 change/@fluentui-react-toolbar-90125ad7-5d01-48b7-b70d-5e49ea09898e.json create mode 100644 change/@fluentui-react-tooltip-fd67d56c-41bf-4bf9-9be3-9551622d501e.json create mode 100644 change/@fluentui-react-tree-21215b85-3300-4410-b6e8-342ade6acab8.json create mode 100644 change/@fluentui-react-utilities-fa65f315-1479-43e7-aede-a6102da2bfab.json create mode 100644 change/@fluentui-react-virtualizer-4c7e9860-d458-42a6-a425-d0e4cf00173e.json create mode 100644 change/@fluentui-tokens-9c9c3b84-f51e-4a0e-b914-95967b77cd12.json create mode 100644 packages/react-components/babel-preset-global-context/.swcrc create mode 100644 packages/react-components/babel-preset-storybook-full-source/.swcrc create mode 100644 packages/react-components/global-context/.swcrc create mode 100644 packages/react-components/keyboard-keys/.swcrc create mode 100644 packages/react-components/priority-overflow/.swcrc create mode 100644 packages/react-components/react-accordion/.swcrc create mode 100644 packages/react-components/react-alert/.swcrc create mode 100644 packages/react-components/react-aria/.swcrc create mode 100644 packages/react-components/react-avatar-context/.swcrc create mode 100644 packages/react-components/react-avatar/.swcrc create mode 100644 packages/react-components/react-badge/.swcrc create mode 100644 packages/react-components/react-breadcrumb/.swcrc create mode 100644 packages/react-components/react-button/.swcrc create mode 100644 packages/react-components/react-card/.swcrc create mode 100644 packages/react-components/react-checkbox/.swcrc create mode 100644 packages/react-components/react-combobox/.swcrc create mode 100644 packages/react-components/react-components/.swcrc create mode 100644 packages/react-components/react-conformance-griffel/.babelrc.json create mode 100644 packages/react-components/react-conformance-griffel/.swcrc create mode 100644 packages/react-components/react-context-selector/.swcrc create mode 100644 packages/react-components/react-data-grid-react-window/.swcrc create mode 100644 packages/react-components/react-datepicker-compat/.swcrc create mode 100644 packages/react-components/react-dialog/.swcrc create mode 100644 packages/react-components/react-divider/.swcrc create mode 100644 packages/react-components/react-drawer/.swcrc create mode 100644 packages/react-components/react-field/.swcrc create mode 100644 packages/react-components/react-image/.swcrc create mode 100644 packages/react-components/react-infobutton/.swcrc create mode 100644 packages/react-components/react-input/.swcrc create mode 100644 packages/react-components/react-label/.swcrc create mode 100644 packages/react-components/react-link/.swcrc create mode 100644 packages/react-components/react-menu/.swcrc create mode 100644 packages/react-components/react-migration-v0-v9/.swcrc create mode 100644 packages/react-components/react-migration-v8-v9/.swcrc create mode 100644 packages/react-components/react-overflow/.swcrc create mode 100644 packages/react-components/react-persona/.swcrc create mode 100644 packages/react-components/react-popover/.swcrc create mode 100644 packages/react-components/react-portal-compat-context/.swcrc create mode 100644 packages/react-components/react-portal-compat/.swcrc create mode 100644 packages/react-components/react-portal/.swcrc create mode 100644 packages/react-components/react-positioning/.swcrc create mode 100644 packages/react-components/react-progress/.swcrc create mode 100644 packages/react-components/react-provider/.swcrc create mode 100644 packages/react-components/react-radio/.swcrc create mode 100644 packages/react-components/react-select/.swcrc create mode 100644 packages/react-components/react-shared-contexts/.swcrc create mode 100644 packages/react-components/react-skeleton/.swcrc create mode 100644 packages/react-components/react-slider/.swcrc create mode 100644 packages/react-components/react-spinbutton/.swcrc create mode 100644 packages/react-components/react-spinner/.swcrc create mode 100644 packages/react-components/react-storybook-addon-codesandbox/.swcrc create mode 100644 packages/react-components/react-storybook-addon/.swcrc create mode 100644 packages/react-components/react-switch/.swcrc create mode 100644 packages/react-components/react-table/.swcrc create mode 100644 packages/react-components/react-tabs/.swcrc create mode 100644 packages/react-components/react-tabster/.swcrc create mode 100644 packages/react-components/react-tags/.swcrc create mode 100644 packages/react-components/react-text/.swcrc create mode 100644 packages/react-components/react-textarea/.swcrc create mode 100644 packages/react-components/react-theme-sass/.swcrc create mode 100644 packages/react-components/react-theme/.swcrc create mode 100644 packages/react-components/react-toolbar/.swcrc create mode 100644 packages/react-components/react-tooltip/.swcrc create mode 100644 packages/react-components/react-tree/.swcrc create mode 100644 packages/react-components/react-utilities/.swcrc create mode 100644 packages/react-components/react-virtualizer/.swcrc create mode 100644 packages/react-components/theme-designer/.swcrc create mode 100644 packages/tokens/.swcrc diff --git a/change/@fluentui-babel-preset-global-context-ecea0dfb-4c5c-4633-bcf3-8b32d8dea2a0.json b/change/@fluentui-babel-preset-global-context-ecea0dfb-4c5c-4633-bcf3-8b32d8dea2a0.json new file mode 100644 index 0000000000000..610d683a4e8c1 --- /dev/null +++ b/change/@fluentui-babel-preset-global-context-ecea0dfb-4c5c-4633-bcf3-8b32d8dea2a0.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/babel-preset-global-context", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-global-context-026f7972-3fe9-44ae-b7fd-a04a18f23f02.json b/change/@fluentui-global-context-026f7972-3fe9-44ae-b7fd-a04a18f23f02.json new file mode 100644 index 0000000000000..ee7c4c3b94984 --- /dev/null +++ b/change/@fluentui-global-context-026f7972-3fe9-44ae-b7fd-a04a18f23f02.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/global-context", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-keyboard-keys-0d5b2e98-10e4-4d37-918c-0f5237921881.json b/change/@fluentui-keyboard-keys-0d5b2e98-10e4-4d37-918c-0f5237921881.json new file mode 100644 index 0000000000000..3bd9e33af4f59 --- /dev/null +++ b/change/@fluentui-keyboard-keys-0d5b2e98-10e4-4d37-918c-0f5237921881.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/keyboard-keys", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-priority-overflow-290773a5-58ea-4b71-bd23-e0c1c8aa6584.json b/change/@fluentui-priority-overflow-290773a5-58ea-4b71-bd23-e0c1c8aa6584.json new file mode 100644 index 0000000000000..e6288063cae4a --- /dev/null +++ b/change/@fluentui-priority-overflow-290773a5-58ea-4b71-bd23-e0c1c8aa6584.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/priority-overflow", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-accordion-6b409706-485a-4ca6-ad10-77f4526d3c2f.json b/change/@fluentui-react-accordion-6b409706-485a-4ca6-ad10-77f4526d3c2f.json new file mode 100644 index 0000000000000..f7580c358ca87 --- /dev/null +++ b/change/@fluentui-react-accordion-6b409706-485a-4ca6-ad10-77f4526d3c2f.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-accordion", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-alert-4ab47bab-9390-4520-b16f-db73ef9d1bc0.json b/change/@fluentui-react-alert-4ab47bab-9390-4520-b16f-db73ef9d1bc0.json new file mode 100644 index 0000000000000..07a3bd0bcce8a --- /dev/null +++ b/change/@fluentui-react-alert-4ab47bab-9390-4520-b16f-db73ef9d1bc0.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-alert", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-aria-7af460f7-0569-41f0-a969-e37514404461.json b/change/@fluentui-react-aria-7af460f7-0569-41f0-a969-e37514404461.json new file mode 100644 index 0000000000000..a232dd1354217 --- /dev/null +++ b/change/@fluentui-react-aria-7af460f7-0569-41f0-a969-e37514404461.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-aria", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-avatar-6db11330-214e-427f-b5e1-da8642f7233a.json b/change/@fluentui-react-avatar-6db11330-214e-427f-b5e1-da8642f7233a.json new file mode 100644 index 0000000000000..236a36aa99e6b --- /dev/null +++ b/change/@fluentui-react-avatar-6db11330-214e-427f-b5e1-da8642f7233a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-avatar", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-badge-9e683c69-3678-4789-98ec-a8a3c3c61fa7.json b/change/@fluentui-react-badge-9e683c69-3678-4789-98ec-a8a3c3c61fa7.json new file mode 100644 index 0000000000000..2c6e92e8490e8 --- /dev/null +++ b/change/@fluentui-react-badge-9e683c69-3678-4789-98ec-a8a3c3c61fa7.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-badge", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-button-972920c1-ed9b-417b-ae4a-04106be26de6.json b/change/@fluentui-react-button-972920c1-ed9b-417b-ae4a-04106be26de6.json new file mode 100644 index 0000000000000..60c2e8969d69e --- /dev/null +++ b/change/@fluentui-react-button-972920c1-ed9b-417b-ae4a-04106be26de6.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-button", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-card-35dda19d-240c-427b-89c6-a9cbb56c646f.json b/change/@fluentui-react-card-35dda19d-240c-427b-89c6-a9cbb56c646f.json new file mode 100644 index 0000000000000..f073615b8ef4f --- /dev/null +++ b/change/@fluentui-react-card-35dda19d-240c-427b-89c6-a9cbb56c646f.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-card", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-checkbox-0411d36e-fe24-49d3-b628-e410d35cda3d.json b/change/@fluentui-react-checkbox-0411d36e-fe24-49d3-b628-e410d35cda3d.json new file mode 100644 index 0000000000000..8013f9cc88d82 --- /dev/null +++ b/change/@fluentui-react-checkbox-0411d36e-fe24-49d3-b628-e410d35cda3d.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-checkbox", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-combobox-32859781-5620-416d-b840-7a93255b3ba6.json b/change/@fluentui-react-combobox-32859781-5620-416d-b840-7a93255b3ba6.json new file mode 100644 index 0000000000000..3d626c420598f --- /dev/null +++ b/change/@fluentui-react-combobox-32859781-5620-416d-b840-7a93255b3ba6.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-combobox", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-components-312e0907-d5d3-4e79-8a1f-2ba1e84c7d12.json b/change/@fluentui-react-components-312e0907-d5d3-4e79-8a1f-2ba1e84c7d12.json new file mode 100644 index 0000000000000..e3d40a610dd87 --- /dev/null +++ b/change/@fluentui-react-components-312e0907-d5d3-4e79-8a1f-2ba1e84c7d12.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-components", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-conformance-griffel-d0fd3169-05c4-4066-9982-949bbb5bc4b6.json b/change/@fluentui-react-conformance-griffel-d0fd3169-05c4-4066-9982-949bbb5bc4b6.json new file mode 100644 index 0000000000000..b598dec6aacf9 --- /dev/null +++ b/change/@fluentui-react-conformance-griffel-d0fd3169-05c4-4066-9982-949bbb5bc4b6.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-conformance-griffel", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-context-selector-22987fd2-575c-4cb9-9a87-0a89589dccc5.json b/change/@fluentui-react-context-selector-22987fd2-575c-4cb9-9a87-0a89589dccc5.json new file mode 100644 index 0000000000000..037184ce367cb --- /dev/null +++ b/change/@fluentui-react-context-selector-22987fd2-575c-4cb9-9a87-0a89589dccc5.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-context-selector", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-data-grid-react-window-3e4914a9-7105-4dce-895e-88bd94223bcf.json b/change/@fluentui-react-data-grid-react-window-3e4914a9-7105-4dce-895e-88bd94223bcf.json new file mode 100644 index 0000000000000..0e3cb7db66f7d --- /dev/null +++ b/change/@fluentui-react-data-grid-react-window-3e4914a9-7105-4dce-895e-88bd94223bcf.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-data-grid-react-window", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-dialog-082fcf1b-1284-49e6-b6f0-7eb4f9b615bb.json b/change/@fluentui-react-dialog-082fcf1b-1284-49e6-b6f0-7eb4f9b615bb.json new file mode 100644 index 0000000000000..e06d202e6c764 --- /dev/null +++ b/change/@fluentui-react-dialog-082fcf1b-1284-49e6-b6f0-7eb4f9b615bb.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-dialog", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-divider-038ed1ca-f1cd-4b22-b7dd-9d4b839fe863.json b/change/@fluentui-react-divider-038ed1ca-f1cd-4b22-b7dd-9d4b839fe863.json new file mode 100644 index 0000000000000..2093497796187 --- /dev/null +++ b/change/@fluentui-react-divider-038ed1ca-f1cd-4b22-b7dd-9d4b839fe863.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-divider", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-field-2c16f652-95a3-4d7a-a514-3687a4ccd80c.json b/change/@fluentui-react-field-2c16f652-95a3-4d7a-a514-3687a4ccd80c.json new file mode 100644 index 0000000000000..f130d87ec70d7 --- /dev/null +++ b/change/@fluentui-react-field-2c16f652-95a3-4d7a-a514-3687a4ccd80c.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-field", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-image-17168a1d-b127-4d79-beb6-714902505d20.json b/change/@fluentui-react-image-17168a1d-b127-4d79-beb6-714902505d20.json new file mode 100644 index 0000000000000..d8fef15ce21f7 --- /dev/null +++ b/change/@fluentui-react-image-17168a1d-b127-4d79-beb6-714902505d20.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-image", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-infobutton-9f1179cb-baf9-47fb-909b-767680595cb9.json b/change/@fluentui-react-infobutton-9f1179cb-baf9-47fb-909b-767680595cb9.json new file mode 100644 index 0000000000000..6acde2e7ef9fa --- /dev/null +++ b/change/@fluentui-react-infobutton-9f1179cb-baf9-47fb-909b-767680595cb9.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-infobutton", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-input-443e222c-e8c3-46ba-b299-90e868740038.json b/change/@fluentui-react-input-443e222c-e8c3-46ba-b299-90e868740038.json new file mode 100644 index 0000000000000..6c0886ad42ddd --- /dev/null +++ b/change/@fluentui-react-input-443e222c-e8c3-46ba-b299-90e868740038.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-input", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-label-3ffc47cc-1dca-4cf7-84c2-a5d19addbbaa.json b/change/@fluentui-react-label-3ffc47cc-1dca-4cf7-84c2-a5d19addbbaa.json new file mode 100644 index 0000000000000..928bec55b53a6 --- /dev/null +++ b/change/@fluentui-react-label-3ffc47cc-1dca-4cf7-84c2-a5d19addbbaa.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-label", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-link-d832e42b-819e-4167-aa51-25b94cbdf05f.json b/change/@fluentui-react-link-d832e42b-819e-4167-aa51-25b94cbdf05f.json new file mode 100644 index 0000000000000..41ca7ec15b94c --- /dev/null +++ b/change/@fluentui-react-link-d832e42b-819e-4167-aa51-25b94cbdf05f.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-link", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-menu-2af75d56-1848-4f1b-8333-e6f7384bbe29.json b/change/@fluentui-react-menu-2af75d56-1848-4f1b-8333-e6f7384bbe29.json new file mode 100644 index 0000000000000..daa2a132f42f5 --- /dev/null +++ b/change/@fluentui-react-menu-2af75d56-1848-4f1b-8333-e6f7384bbe29.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-menu", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-migration-v8-v9-5ba036c3-a5e8-4cc4-b6d1-1020d12a8759.json b/change/@fluentui-react-migration-v8-v9-5ba036c3-a5e8-4cc4-b6d1-1020d12a8759.json new file mode 100644 index 0000000000000..de76434271bc7 --- /dev/null +++ b/change/@fluentui-react-migration-v8-v9-5ba036c3-a5e8-4cc4-b6d1-1020d12a8759.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-migration-v8-v9", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-overflow-ca085ca6-813e-4855-adc1-098fbeb61d18.json b/change/@fluentui-react-overflow-ca085ca6-813e-4855-adc1-098fbeb61d18.json new file mode 100644 index 0000000000000..508d027cb601f --- /dev/null +++ b/change/@fluentui-react-overflow-ca085ca6-813e-4855-adc1-098fbeb61d18.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-overflow", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-persona-63999f8c-a3de-4ef8-a4f5-4ee448629efd.json b/change/@fluentui-react-persona-63999f8c-a3de-4ef8-a4f5-4ee448629efd.json new file mode 100644 index 0000000000000..b15436df48acd --- /dev/null +++ b/change/@fluentui-react-persona-63999f8c-a3de-4ef8-a4f5-4ee448629efd.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-persona", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-popover-4ff8be4f-cd07-4452-a7c0-ee00e736beea.json b/change/@fluentui-react-popover-4ff8be4f-cd07-4452-a7c0-ee00e736beea.json new file mode 100644 index 0000000000000..16619a85ed6ff --- /dev/null +++ b/change/@fluentui-react-popover-4ff8be4f-cd07-4452-a7c0-ee00e736beea.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-popover", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-portal-8082ae8b-d385-4c45-8edf-f30e9d668d43.json b/change/@fluentui-react-portal-8082ae8b-d385-4c45-8edf-f30e9d668d43.json new file mode 100644 index 0000000000000..606be749ae7a5 --- /dev/null +++ b/change/@fluentui-react-portal-8082ae8b-d385-4c45-8edf-f30e9d668d43.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-portal", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-portal-compat-06517dd0-5c2c-425e-bf93-2658b4722cde.json b/change/@fluentui-react-portal-compat-06517dd0-5c2c-425e-bf93-2658b4722cde.json new file mode 100644 index 0000000000000..010ff7ed15648 --- /dev/null +++ b/change/@fluentui-react-portal-compat-06517dd0-5c2c-425e-bf93-2658b4722cde.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-portal-compat", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-portal-compat-context-fd76d55d-8512-4bd2-b7c5-dc01d66c3cd4.json b/change/@fluentui-react-portal-compat-context-fd76d55d-8512-4bd2-b7c5-dc01d66c3cd4.json new file mode 100644 index 0000000000000..21f4ef9ca250d --- /dev/null +++ b/change/@fluentui-react-portal-compat-context-fd76d55d-8512-4bd2-b7c5-dc01d66c3cd4.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-portal-compat-context", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-positioning-74f5181a-e9b7-411e-9690-194185bac55a.json b/change/@fluentui-react-positioning-74f5181a-e9b7-411e-9690-194185bac55a.json new file mode 100644 index 0000000000000..a4ff9e4c43126 --- /dev/null +++ b/change/@fluentui-react-positioning-74f5181a-e9b7-411e-9690-194185bac55a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-positioning", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-progress-3b013070-ade7-4012-b765-30e41873c815.json b/change/@fluentui-react-progress-3b013070-ade7-4012-b765-30e41873c815.json new file mode 100644 index 0000000000000..505e4fa8ac636 --- /dev/null +++ b/change/@fluentui-react-progress-3b013070-ade7-4012-b765-30e41873c815.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-progress", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-provider-2606fc2c-66a8-40ad-a64c-88632a802566.json b/change/@fluentui-react-provider-2606fc2c-66a8-40ad-a64c-88632a802566.json new file mode 100644 index 0000000000000..bc24d66b59b41 --- /dev/null +++ b/change/@fluentui-react-provider-2606fc2c-66a8-40ad-a64c-88632a802566.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-provider", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-radio-f3dd21f1-5929-469e-9dcd-4716061287b4.json b/change/@fluentui-react-radio-f3dd21f1-5929-469e-9dcd-4716061287b4.json new file mode 100644 index 0000000000000..ee8e5ee3bebfe --- /dev/null +++ b/change/@fluentui-react-radio-f3dd21f1-5929-469e-9dcd-4716061287b4.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-radio", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-select-d7932c4d-1b41-4d11-ab77-171ff745e1b3.json b/change/@fluentui-react-select-d7932c4d-1b41-4d11-ab77-171ff745e1b3.json new file mode 100644 index 0000000000000..a3009e54d0e38 --- /dev/null +++ b/change/@fluentui-react-select-d7932c4d-1b41-4d11-ab77-171ff745e1b3.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-select", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-shared-contexts-6cc38ee5-1ca6-491b-92ef-921da2f3965c.json b/change/@fluentui-react-shared-contexts-6cc38ee5-1ca6-491b-92ef-921da2f3965c.json new file mode 100644 index 0000000000000..6b55c4b5bf2d1 --- /dev/null +++ b/change/@fluentui-react-shared-contexts-6cc38ee5-1ca6-491b-92ef-921da2f3965c.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-shared-contexts", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-skeleton-4d8c5d77-c91b-4cea-93d1-f0fd18e093a3.json b/change/@fluentui-react-skeleton-4d8c5d77-c91b-4cea-93d1-f0fd18e093a3.json new file mode 100644 index 0000000000000..c21767b317f77 --- /dev/null +++ b/change/@fluentui-react-skeleton-4d8c5d77-c91b-4cea-93d1-f0fd18e093a3.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-skeleton", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-slider-53c9ae6c-f676-4e59-a3d3-b03bda1f48fa.json b/change/@fluentui-react-slider-53c9ae6c-f676-4e59-a3d3-b03bda1f48fa.json new file mode 100644 index 0000000000000..1538c6e5c8a02 --- /dev/null +++ b/change/@fluentui-react-slider-53c9ae6c-f676-4e59-a3d3-b03bda1f48fa.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-slider", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-spinbutton-54f71a0f-6d1a-4e35-b2f4-ec6eb88177a1.json b/change/@fluentui-react-spinbutton-54f71a0f-6d1a-4e35-b2f4-ec6eb88177a1.json new file mode 100644 index 0000000000000..da759980b6b4d --- /dev/null +++ b/change/@fluentui-react-spinbutton-54f71a0f-6d1a-4e35-b2f4-ec6eb88177a1.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-spinbutton", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-spinner-dd5e787a-9178-4189-8505-15c72520d0d2.json b/change/@fluentui-react-spinner-dd5e787a-9178-4189-8505-15c72520d0d2.json new file mode 100644 index 0000000000000..ec49d119dbaf2 --- /dev/null +++ b/change/@fluentui-react-spinner-dd5e787a-9178-4189-8505-15c72520d0d2.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-spinner", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-switch-d84b4430-0bbd-44c2-8cab-0063b41030d4.json b/change/@fluentui-react-switch-d84b4430-0bbd-44c2-8cab-0063b41030d4.json new file mode 100644 index 0000000000000..246c90b9165e9 --- /dev/null +++ b/change/@fluentui-react-switch-d84b4430-0bbd-44c2-8cab-0063b41030d4.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-switch", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-table-1db6b84c-0ff1-4b5d-9e6f-8975c59244ad.json b/change/@fluentui-react-table-1db6b84c-0ff1-4b5d-9e6f-8975c59244ad.json new file mode 100644 index 0000000000000..5437fef3d78a4 --- /dev/null +++ b/change/@fluentui-react-table-1db6b84c-0ff1-4b5d-9e6f-8975c59244ad.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-table", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-tabs-7d149a7e-f686-451a-9660-b62410e7684b.json b/change/@fluentui-react-tabs-7d149a7e-f686-451a-9660-b62410e7684b.json new file mode 100644 index 0000000000000..115dc600af739 --- /dev/null +++ b/change/@fluentui-react-tabs-7d149a7e-f686-451a-9660-b62410e7684b.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-tabs", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-tabster-d4be52b5-5ee9-4415-a9ee-5220b260b504.json b/change/@fluentui-react-tabster-d4be52b5-5ee9-4415-a9ee-5220b260b504.json new file mode 100644 index 0000000000000..8e16881322cd8 --- /dev/null +++ b/change/@fluentui-react-tabster-d4be52b5-5ee9-4415-a9ee-5220b260b504.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-tabster", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-text-81e88b33-2403-42bd-b118-21ac9d543269.json b/change/@fluentui-react-text-81e88b33-2403-42bd-b118-21ac9d543269.json new file mode 100644 index 0000000000000..6d71a0ed74888 --- /dev/null +++ b/change/@fluentui-react-text-81e88b33-2403-42bd-b118-21ac9d543269.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-text", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-textarea-f459fd9b-96a4-4403-a88a-b2775929460a.json b/change/@fluentui-react-textarea-f459fd9b-96a4-4403-a88a-b2775929460a.json new file mode 100644 index 0000000000000..9cce1bad17a58 --- /dev/null +++ b/change/@fluentui-react-textarea-f459fd9b-96a4-4403-a88a-b2775929460a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-textarea", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-theme-e8d1e0ee-24d5-4f12-9002-fa7521877eaf.json b/change/@fluentui-react-theme-e8d1e0ee-24d5-4f12-9002-fa7521877eaf.json new file mode 100644 index 0000000000000..eac7af8f29199 --- /dev/null +++ b/change/@fluentui-react-theme-e8d1e0ee-24d5-4f12-9002-fa7521877eaf.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-theme", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-theme-sass-c580d16d-b654-49df-86f1-fed96a424bf2.json b/change/@fluentui-react-theme-sass-c580d16d-b654-49df-86f1-fed96a424bf2.json new file mode 100644 index 0000000000000..35c72b29a32bf --- /dev/null +++ b/change/@fluentui-react-theme-sass-c580d16d-b654-49df-86f1-fed96a424bf2.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-theme-sass", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-toolbar-90125ad7-5d01-48b7-b70d-5e49ea09898e.json b/change/@fluentui-react-toolbar-90125ad7-5d01-48b7-b70d-5e49ea09898e.json new file mode 100644 index 0000000000000..1b2c18b1f66c8 --- /dev/null +++ b/change/@fluentui-react-toolbar-90125ad7-5d01-48b7-b70d-5e49ea09898e.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-toolbar", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-tooltip-fd67d56c-41bf-4bf9-9be3-9551622d501e.json b/change/@fluentui-react-tooltip-fd67d56c-41bf-4bf9-9be3-9551622d501e.json new file mode 100644 index 0000000000000..2df155742580e --- /dev/null +++ b/change/@fluentui-react-tooltip-fd67d56c-41bf-4bf9-9be3-9551622d501e.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-tooltip", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-tree-21215b85-3300-4410-b6e8-342ade6acab8.json b/change/@fluentui-react-tree-21215b85-3300-4410-b6e8-342ade6acab8.json new file mode 100644 index 0000000000000..913db8a4e844c --- /dev/null +++ b/change/@fluentui-react-tree-21215b85-3300-4410-b6e8-342ade6acab8.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-tree", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-utilities-fa65f315-1479-43e7-aede-a6102da2bfab.json b/change/@fluentui-react-utilities-fa65f315-1479-43e7-aede-a6102da2bfab.json new file mode 100644 index 0000000000000..c8f5f206078ad --- /dev/null +++ b/change/@fluentui-react-utilities-fa65f315-1479-43e7-aede-a6102da2bfab.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-utilities", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-virtualizer-4c7e9860-d458-42a6-a425-d0e4cf00173e.json b/change/@fluentui-react-virtualizer-4c7e9860-d458-42a6-a425-d0e4cf00173e.json new file mode 100644 index 0000000000000..375313d76501c --- /dev/null +++ b/change/@fluentui-react-virtualizer-4c7e9860-d458-42a6-a425-d0e4cf00173e.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/react-virtualizer", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-tokens-9c9c3b84-f51e-4a0e-b914-95967b77cd12.json b/change/@fluentui-tokens-9c9c3b84-f51e-4a0e-b914-95967b77cd12.json new file mode 100644 index 0000000000000..95f773738f3d2 --- /dev/null +++ b/change/@fluentui-tokens-9c9c3b84-f51e-4a0e-b914-95967b77cd12.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "chore: migrate to swc transpilation approach.", + "packageName": "@fluentui/tokens", + "email": "tristan.watanabe@gmail.com", + "dependentChangeType": "patch" +} diff --git a/package.json b/package.json index 8ae6a681a996f..d72a03c4f95a4 100644 --- a/package.json +++ b/package.json @@ -407,6 +407,7 @@ "@babel/generator", "@babel/traverse", "@rnx-kit/eslint-plugin", + "@swc/helpers", "@types/react-test-renderer", "@typescript-eslint/eslint-plugin", "@typescript-eslint/experimental-utils", diff --git a/packages/react-components/babel-preset-global-context/.babelrc.json b/packages/react-components/babel-preset-global-context/.babelrc.json index 80286a9e4c250..435587beba588 100644 --- a/packages/react-components/babel-preset-global-context/.babelrc.json +++ b/packages/react-components/babel-preset-global-context/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls"] } diff --git a/packages/react-components/babel-preset-global-context/.swcrc b/packages/react-components/babel-preset-global-context/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/babel-preset-global-context/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/babel-preset-global-context/just.config.ts b/packages/react-components/babel-preset-global-context/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/babel-preset-global-context/just.config.ts +++ b/packages/react-components/babel-preset-global-context/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/babel-preset-global-context/package.json b/packages/react-components/babel-preset-global-context/package.json index 18fbd07ec0fe4..48ed09fd764e7 100644 --- a/packages/react-components/babel-preset-global-context/package.json +++ b/packages/react-components/babel-preset-global-context/package.json @@ -20,7 +20,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -35,8 +35,8 @@ "@babel/template": "^7.12.13", "@babel/traverse": "^7.12.13", "@emotion/hash": "^0.8.0", - "find-up": "^5.0.0", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14", + "find-up": "^5.0.0" }, "peerDependencies": { "@fluentui/global-context": "9.0.0-beta.21" diff --git a/packages/react-components/babel-preset-storybook-full-source/.babelrc.json b/packages/react-components/babel-preset-storybook-full-source/.babelrc.json index 80286a9e4c250..435587beba588 100644 --- a/packages/react-components/babel-preset-storybook-full-source/.babelrc.json +++ b/packages/react-components/babel-preset-storybook-full-source/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls"] } diff --git a/packages/react-components/babel-preset-storybook-full-source/.swcrc b/packages/react-components/babel-preset-storybook-full-source/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/babel-preset-storybook-full-source/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/babel-preset-storybook-full-source/just.config.ts b/packages/react-components/babel-preset-storybook-full-source/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/babel-preset-storybook-full-source/just.config.ts +++ b/packages/react-components/babel-preset-storybook-full-source/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/babel-preset-storybook-full-source/package.json b/packages/react-components/babel-preset-storybook-full-source/package.json index 861be69dd26be..70c26d1a8d262 100644 --- a/packages/react-components/babel-preset-storybook-full-source/package.json +++ b/packages/react-components/babel-preset-storybook-full-source/package.json @@ -18,7 +18,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -27,9 +27,9 @@ }, "dependencies": { "@babel/core": "^7.10.4", + "@swc/helpers": "^0.4.14", "prettier": "2.8.4", - "pkg-up": "^3.1.0", - "tslib": "^2.1.0" + "pkg-up": "^3.1.0" }, "exports": { ".": { diff --git a/packages/react-components/global-context/.babelrc.json b/packages/react-components/global-context/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/global-context/.babelrc.json +++ b/packages/react-components/global-context/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/global-context/.swcrc b/packages/react-components/global-context/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/global-context/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/global-context/just.config.ts b/packages/react-components/global-context/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/global-context/just.config.ts +++ b/packages/react-components/global-context/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/global-context/package.json b/packages/react-components/global-context/package.json index 78119edcc97b9..6232efbfa1c80 100644 --- a/packages/react-components/global-context/package.json +++ b/packages/react-components/global-context/package.json @@ -22,7 +22,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -33,7 +33,7 @@ "dependencies": { "@fluentui/react-context-selector": "^9.1.14", "@fluentui/react-utilities": "^9.7.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/keyboard-keys/.babelrc.json b/packages/react-components/keyboard-keys/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/keyboard-keys/.babelrc.json +++ b/packages/react-components/keyboard-keys/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/keyboard-keys/.swcrc b/packages/react-components/keyboard-keys/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/keyboard-keys/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/keyboard-keys/just.config.ts b/packages/react-components/keyboard-keys/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/keyboard-keys/just.config.ts +++ b/packages/react-components/keyboard-keys/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/keyboard-keys/package.json b/packages/react-components/keyboard-keys/package.json index 8f542606fee49..d78d647c508ae 100644 --- a/packages/react-components/keyboard-keys/package.json +++ b/packages/react-components/keyboard-keys/package.json @@ -19,7 +19,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -27,7 +27,7 @@ "@fluentui/scripts-tasks": "*" }, "dependencies": { - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "beachball": { "disallowedChangeTypes": [ diff --git a/packages/react-components/priority-overflow/.babelrc.json b/packages/react-components/priority-overflow/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/priority-overflow/.babelrc.json +++ b/packages/react-components/priority-overflow/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/priority-overflow/.swcrc b/packages/react-components/priority-overflow/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/priority-overflow/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/priority-overflow/just.config.ts b/packages/react-components/priority-overflow/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/priority-overflow/just.config.ts +++ b/packages/react-components/priority-overflow/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/priority-overflow/package.json b/packages/react-components/priority-overflow/package.json index 25773ab17b983..6562fa3a0dc50 100644 --- a/packages/react-components/priority-overflow/package.json +++ b/packages/react-components/priority-overflow/package.json @@ -20,7 +20,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -28,7 +28,7 @@ "@fluentui/scripts-tasks": "*" }, "dependencies": { - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "beachball": { "disallowedChangeTypes": [ diff --git a/packages/react-components/react-accordion/.babelrc.json b/packages/react-components/react-accordion/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-accordion/.babelrc.json +++ b/packages/react-components/react-accordion/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-accordion/.swcrc b/packages/react-components/react-accordion/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-accordion/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-accordion/just.config.ts b/packages/react-components/react-accordion/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-accordion/just.config.ts +++ b/packages/react-components/react-accordion/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-accordion/package.json b/packages/react-components/react-accordion/package.json index 7c713175b4da2..a6ebc9e73c120 100644 --- a/packages/react-components/react-accordion/package.json +++ b/packages/react-components/react-accordion/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -40,7 +40,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-alert/.babelrc.json b/packages/react-components/react-alert/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-alert/.babelrc.json +++ b/packages/react-components/react-alert/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-alert/.swcrc b/packages/react-components/react-alert/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-alert/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-alert/just.config.ts b/packages/react-components/react-alert/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-alert/just.config.ts +++ b/packages/react-components/react-alert/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-alert/package.json b/packages/react-components/react-alert/package.json index ca0d5e5e06dd1..ac2acfed2162e 100644 --- a/packages/react-components/react-alert/package.json +++ b/packages/react-components/react-alert/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -39,7 +39,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-aria/.babelrc.json b/packages/react-components/react-aria/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-aria/.babelrc.json +++ b/packages/react-components/react-aria/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-aria/.swcrc b/packages/react-components/react-aria/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-aria/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-aria/just.config.ts b/packages/react-components/react-aria/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-aria/just.config.ts +++ b/packages/react-components/react-aria/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-aria/package.json b/packages/react-components/react-aria/package.json index d3fa9e36ddddd..99b58ebf1c3da 100644 --- a/packages/react-components/react-aria/package.json +++ b/packages/react-components/react-aria/package.json @@ -21,7 +21,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -32,7 +32,7 @@ "dependencies": { "@fluentui/keyboard-keys": "^9.0.1", "@fluentui/react-utilities": "^9.7.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-avatar-context/.babelrc.json b/packages/react-components/react-avatar-context/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-avatar-context/.babelrc.json +++ b/packages/react-components/react-avatar-context/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-avatar-context/.swcrc b/packages/react-components/react-avatar-context/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-avatar-context/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-avatar-context/just.config.ts b/packages/react-components/react-avatar-context/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-avatar-context/just.config.ts +++ b/packages/react-components/react-avatar-context/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-avatar-context/package.json b/packages/react-components/react-avatar-context/package.json index eb7cb642038b7..5dd9b4859dbd3 100644 --- a/packages/react-components/react-avatar-context/package.json +++ b/packages/react-components/react-avatar-context/package.json @@ -19,7 +19,7 @@ "just": "just-scripts", "lint": "just-scripts lint", "test": "jest --passWithNoTests", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "type-check": "tsc -b tsconfig.json" }, "devDependencies": { @@ -33,7 +33,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-avatar/.babelrc.json b/packages/react-components/react-avatar/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-avatar/.babelrc.json +++ b/packages/react-components/react-avatar/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-avatar/.swcrc b/packages/react-components/react-avatar/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-avatar/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-avatar/just.config.ts b/packages/react-components/react-avatar/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-avatar/just.config.ts +++ b/packages/react-components/react-avatar/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-avatar/package.json b/packages/react-components/react-avatar/package.json index ce783ccbb3399..9bf7c8c899e3d 100644 --- a/packages/react-components/react-avatar/package.json +++ b/packages/react-components/react-avatar/package.json @@ -24,7 +24,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -46,7 +46,7 @@ "@fluentui/react-tooltip": "^9.2.4", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-badge/.babelrc.json b/packages/react-components/react-badge/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-badge/.babelrc.json +++ b/packages/react-components/react-badge/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-badge/.swcrc b/packages/react-components/react-badge/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-badge/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-badge/just.config.ts b/packages/react-components/react-badge/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-badge/just.config.ts +++ b/packages/react-components/react-badge/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-badge/package.json b/packages/react-components/react-badge/package.json index 87faf6c38e50f..e587029a40c00 100644 --- a/packages/react-components/react-badge/package.json +++ b/packages/react-components/react-badge/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -37,7 +37,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-breadcrumb/.babelrc.json b/packages/react-components/react-breadcrumb/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-breadcrumb/.babelrc.json +++ b/packages/react-components/react-breadcrumb/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-breadcrumb/.swcrc b/packages/react-components/react-breadcrumb/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-breadcrumb/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-breadcrumb/just.config.ts b/packages/react-components/react-breadcrumb/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-breadcrumb/just.config.ts +++ b/packages/react-components/react-breadcrumb/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-breadcrumb/package.json b/packages/react-components/react-breadcrumb/package.json index db5a7eaba5b11..6ec0dfbedbe4e 100644 --- a/packages/react-components/react-breadcrumb/package.json +++ b/packages/react-components/react-breadcrumb/package.json @@ -20,7 +20,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "storybook": "start-storybook", "start": "yarn storybook" }, @@ -36,7 +36,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-button/.babelrc.json b/packages/react-components/react-button/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-button/.babelrc.json +++ b/packages/react-components/react-button/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-button/.swcrc b/packages/react-components/react-button/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-button/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-button/just.config.ts b/packages/react-components/react-button/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-button/just.config.ts +++ b/packages/react-components/react-button/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-button/package.json b/packages/react-components/react-button/package.json index 2f231848864d9..de11bee53a2c8 100644 --- a/packages/react-components/react-button/package.json +++ b/packages/react-components/react-button/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/a11y-testing": "^0.1.0", @@ -41,7 +41,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-card/.babelrc.json b/packages/react-components/react-card/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-card/.babelrc.json +++ b/packages/react-components/react-card/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-card/.swcrc b/packages/react-components/react-card/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-card/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-card/just.config.ts b/packages/react-components/react-card/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-card/just.config.ts +++ b/packages/react-components/react-card/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-card/package.json b/packages/react-components/react-card/package.json index c53272c3fa223..de34cb9652ad9 100644 --- a/packages/react-components/react-card/package.json +++ b/packages/react-components/react-card/package.json @@ -25,7 +25,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -42,7 +42,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-checkbox/.babelrc.json b/packages/react-components/react-checkbox/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-checkbox/.babelrc.json +++ b/packages/react-components/react-checkbox/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-checkbox/.swcrc b/packages/react-components/react-checkbox/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-checkbox/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-checkbox/just.config.ts b/packages/react-components/react-checkbox/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-checkbox/just.config.ts +++ b/packages/react-components/react-checkbox/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-checkbox/package.json b/packages/react-components/react-checkbox/package.json index 963a4a5c6d898..1238f2a787d0f 100644 --- a/packages/react-components/react-checkbox/package.json +++ b/packages/react-components/react-checkbox/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -40,7 +40,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-combobox/.babelrc.json b/packages/react-components/react-combobox/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-combobox/.babelrc.json +++ b/packages/react-components/react-combobox/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-combobox/.swcrc b/packages/react-components/react-combobox/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-combobox/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-combobox/just.config.ts b/packages/react-components/react-combobox/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-combobox/just.config.ts +++ b/packages/react-components/react-combobox/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-combobox/package.json b/packages/react-components/react-combobox/package.json index ba2b0b5f1e2d0..f18b296756a50 100644 --- a/packages/react-components/react-combobox/package.json +++ b/packages/react-components/react-combobox/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -42,7 +42,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-components/.babelrc.json b/packages/react-components/react-components/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-components/.babelrc.json +++ b/packages/react-components/react-components/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-components/.swcrc b/packages/react-components/react-components/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-components/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-components/just.config.ts b/packages/react-components/react-components/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-components/just.config.ts +++ b/packages/react-components/react-components/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-components/package.json b/packages/react-components/react-components/package.json index 3fd4ec8bf69dd..6d326791d376f 100644 --- a/packages/react-components/react-components/package.json +++ b/packages/react-components/react-components/package.json @@ -22,7 +22,7 @@ "storybook": "start-storybook", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -75,7 +75,7 @@ "@fluentui/react-virtualizer": "9.0.0-alpha.12", "@fluentui/react-tree": "9.0.0-beta.5", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", @@ -96,12 +96,12 @@ "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, + "./package.json": "./package.json", "./unstable": { "types": "./dist/unstable.d.ts", "node": "./lib-commonjs/unstable/index.js", "import": "./lib/unstable/index.js", "require": "./lib-commonjs/unstable/index.js" - }, - "./package.json": "./package.json" + } } } diff --git a/packages/react-components/react-conformance-griffel/.babelrc.json b/packages/react-components/react-conformance-griffel/.babelrc.json new file mode 100644 index 0000000000000..435587beba588 --- /dev/null +++ b/packages/react-components/react-conformance-griffel/.babelrc.json @@ -0,0 +1,3 @@ +{ + "plugins": ["annotate-pure-calls"] +} diff --git a/packages/react-components/react-conformance-griffel/.swcrc b/packages/react-components/react-conformance-griffel/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-conformance-griffel/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-conformance-griffel/just.config.ts b/packages/react-components/react-conformance-griffel/just.config.ts index 242d94f1f0210..b7b2c9a33bf43 100644 --- a/packages/react-components/react-conformance-griffel/just.config.ts +++ b/packages/react-components/react-conformance-griffel/just.config.ts @@ -2,4 +2,4 @@ import { preset, task } from '@fluentui/scripts-tasks'; preset(); -task('build', 'build:node-lib').cached!(); +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-conformance-griffel/package.json b/packages/react-components/react-conformance-griffel/package.json index f1df4bfdec53b..6eabd783360e8 100644 --- a/packages/react-components/react-conformance-griffel/package.json +++ b/packages/react-components/react-conformance-griffel/package.json @@ -17,7 +17,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -33,7 +33,7 @@ }, "dependencies": { "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "beachball": { "disallowedChangeTypes": [ diff --git a/packages/react-components/react-context-selector/.babelrc.json b/packages/react-components/react-context-selector/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-context-selector/.babelrc.json +++ b/packages/react-components/react-context-selector/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-context-selector/.swcrc b/packages/react-components/react-context-selector/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-context-selector/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-context-selector/just.config.ts b/packages/react-components/react-context-selector/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-context-selector/just.config.ts +++ b/packages/react-components/react-context-selector/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-context-selector/package.json b/packages/react-components/react-context-selector/package.json index c81a242e51656..956d18be1e585 100644 --- a/packages/react-components/react-context-selector/package.json +++ b/packages/react-components/react-context-selector/package.json @@ -19,7 +19,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -28,7 +28,7 @@ }, "dependencies": { "@fluentui/react-utilities": "^9.7.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-data-grid-react-window/.babelrc.json b/packages/react-components/react-data-grid-react-window/.babelrc.json index 40e01373083ce..38bf1f7a945cf 100644 --- a/packages/react-components/react-data-grid-react-window/.babelrc.json +++ b/packages/react-components/react-data-grid-react-window/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": ["@griffel"], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-data-grid-react-window/.swcrc b/packages/react-components/react-data-grid-react-window/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-data-grid-react-window/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-data-grid-react-window/just.config.ts b/packages/react-components/react-data-grid-react-window/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-data-grid-react-window/just.config.ts +++ b/packages/react-components/react-data-grid-react-window/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-data-grid-react-window/package.json b/packages/react-components/react-data-grid-react-window/package.json index dd92026e92f66..c3e5d8bc7af8a 100644 --- a/packages/react-components/react-data-grid-react-window/package.json +++ b/packages/react-components/react-data-grid-react-window/package.json @@ -19,9 +19,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", - "storybook": "start-storybook", - "start": "yarn storybook" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -33,8 +31,8 @@ "dependencies": { "@fluentui/react-table": "^9.2.1", "@fluentui/react-utilities": "^9.7.1", - "react-window": "^1.8.6", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14", + "react-window": "^1.8.6" }, "peerDependencies": { "@fluentui/react-components": "^9.18.2", diff --git a/packages/react-components/react-datepicker-compat/.babelrc.json b/packages/react-components/react-datepicker-compat/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-datepicker-compat/.babelrc.json +++ b/packages/react-components/react-datepicker-compat/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-datepicker-compat/.swcrc b/packages/react-components/react-datepicker-compat/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-datepicker-compat/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-datepicker-compat/just.config.ts b/packages/react-components/react-datepicker-compat/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-datepicker-compat/just.config.ts +++ b/packages/react-components/react-datepicker-compat/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-datepicker-compat/package.json b/packages/react-components/react-datepicker-compat/package.json index 5d64da95880e6..1eb595e9e82f8 100644 --- a/packages/react-components/react-datepicker-compat/package.json +++ b/packages/react-components/react-datepicker-compat/package.json @@ -22,7 +22,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "storybook": "start-storybook", "start": "yarn storybook" }, @@ -45,7 +45,7 @@ "@fluentui/react-positioning": "^9.5.5", "@fluentui/react-input": "^9.4.4", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-dialog/.babelrc.json b/packages/react-components/react-dialog/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-dialog/.babelrc.json +++ b/packages/react-components/react-dialog/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-dialog/.swcrc b/packages/react-components/react-dialog/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-dialog/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-dialog/just.config.ts b/packages/react-components/react-dialog/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-dialog/just.config.ts +++ b/packages/react-components/react-dialog/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-dialog/package.json b/packages/react-components/react-dialog/package.json index 43f0b64fcc714..40753e6445ae1 100644 --- a/packages/react-components/react-dialog/package.json +++ b/packages/react-components/react-dialog/package.json @@ -24,7 +24,7 @@ "e2e:local": "cypress open --component", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -45,7 +45,7 @@ "@fluentui/react-tabster": "^9.6.0", "@fluentui/react-theme": "^9.1.6", "@fluentui/react-portal": "^9.2.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-divider/.babelrc.json b/packages/react-components/react-divider/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-divider/.babelrc.json +++ b/packages/react-components/react-divider/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-divider/.swcrc b/packages/react-components/react-divider/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-divider/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-divider/just.config.ts b/packages/react-components/react-divider/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-divider/just.config.ts +++ b/packages/react-components/react-divider/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-divider/package.json b/packages/react-components/react-divider/package.json index 2f4a730ac790b..ccacb7890588b 100644 --- a/packages/react-components/react-divider/package.json +++ b/packages/react-components/react-divider/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -36,7 +36,7 @@ "@fluentui/react-shared-contexts": "^9.3.1", "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-drawer/.babelrc.json b/packages/react-components/react-drawer/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-drawer/.babelrc.json +++ b/packages/react-components/react-drawer/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-drawer/.swcrc b/packages/react-components/react-drawer/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-drawer/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-drawer/just.config.ts b/packages/react-components/react-drawer/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-drawer/just.config.ts +++ b/packages/react-components/react-drawer/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-drawer/package.json b/packages/react-components/react-drawer/package.json index 18b0f78413fb1..243e22897dbc4 100644 --- a/packages/react-components/react-drawer/package.json +++ b/packages/react-components/react-drawer/package.json @@ -22,7 +22,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "storybook": "start-storybook", "start": "yarn storybook" }, @@ -38,7 +38,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-field/.babelrc.json b/packages/react-components/react-field/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-field/.babelrc.json +++ b/packages/react-components/react-field/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-field/.swcrc b/packages/react-components/react-field/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-field/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-field/just.config.ts b/packages/react-components/react-field/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-field/just.config.ts +++ b/packages/react-components/react-field/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-field/package.json b/packages/react-components/react-field/package.json index 439050777bfa4..e25cbab452c06 100644 --- a/packages/react-components/react-field/package.json +++ b/packages/react-components/react-field/package.json @@ -22,7 +22,7 @@ "storybook": "start-storybook", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -38,7 +38,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-image/.babelrc.json b/packages/react-components/react-image/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-image/.babelrc.json +++ b/packages/react-components/react-image/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-image/.swcrc b/packages/react-components/react-image/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-image/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-image/just.config.ts b/packages/react-components/react-image/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-image/just.config.ts +++ b/packages/react-components/react-image/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-image/package.json b/packages/react-components/react-image/package.json index 46183b6a153b7..44b765a5d1594 100644 --- a/packages/react-components/react-image/package.json +++ b/packages/react-components/react-image/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -36,7 +36,7 @@ "@fluentui/react-shared-contexts": "^9.3.1", "@fluentui/react-utilities": "^9.7.1", "@fluentui/react-theme": "^9.1.6", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-infobutton/.babelrc.json b/packages/react-components/react-infobutton/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-infobutton/.babelrc.json +++ b/packages/react-components/react-infobutton/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-infobutton/.swcrc b/packages/react-components/react-infobutton/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-infobutton/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-infobutton/just.config.ts b/packages/react-components/react-infobutton/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-infobutton/just.config.ts +++ b/packages/react-components/react-infobutton/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-infobutton/package.json b/packages/react-components/react-infobutton/package.json index 93872913e3ee0..76103c00874c3 100644 --- a/packages/react-components/react-infobutton/package.json +++ b/packages/react-components/react-infobutton/package.json @@ -19,7 +19,7 @@ "just": "just-scripts", "lint": "just-scripts lint", "test": "jest --passWithNoTests", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "type-check": "tsc -b tsconfig.json", "storybook": "start-storybook", "start": "yarn storybook" @@ -39,7 +39,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-input/.babelrc.json b/packages/react-components/react-input/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-input/.babelrc.json +++ b/packages/react-components/react-input/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-input/.swcrc b/packages/react-components/react-input/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-input/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-input/just.config.ts b/packages/react-components/react-input/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-input/just.config.ts +++ b/packages/react-components/react-input/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-input/package.json b/packages/react-components/react-input/package.json index 1dd2b3e6f2b83..d86168aa8a6d6 100644 --- a/packages/react-components/react-input/package.json +++ b/packages/react-components/react-input/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -38,7 +38,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-label/.babelrc.json b/packages/react-components/react-label/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-label/.babelrc.json +++ b/packages/react-components/react-label/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-label/.swcrc b/packages/react-components/react-label/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-label/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-label/just.config.ts b/packages/react-components/react-label/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-label/just.config.ts +++ b/packages/react-components/react-label/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-label/package.json b/packages/react-components/react-label/package.json index 94d3f70da51db..a87153abae15a 100644 --- a/packages/react-components/react-label/package.json +++ b/packages/react-components/react-label/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -36,7 +36,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-link/.babelrc.json b/packages/react-components/react-link/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-link/.babelrc.json +++ b/packages/react-components/react-link/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-link/.swcrc b/packages/react-components/react-link/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-link/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-link/just.config.ts b/packages/react-components/react-link/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-link/just.config.ts +++ b/packages/react-components/react-link/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-link/package.json b/packages/react-components/react-link/package.json index 838825983b218..f24317357bc06 100644 --- a/packages/react-components/react-link/package.json +++ b/packages/react-components/react-link/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/a11y-testing": "^0.1.0", @@ -38,7 +38,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-menu/.babelrc.json b/packages/react-components/react-menu/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-menu/.babelrc.json +++ b/packages/react-components/react-menu/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-menu/.swcrc b/packages/react-components/react-menu/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-menu/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-menu/just.config.ts b/packages/react-components/react-menu/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-menu/just.config.ts +++ b/packages/react-components/react-menu/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-menu/package.json b/packages/react-components/react-menu/package.json index 52d53710a525a..5aeb5611c2f93 100644 --- a/packages/react-components/react-menu/package.json +++ b/packages/react-components/react-menu/package.json @@ -24,7 +24,7 @@ "storybook": "start-storybook", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -46,7 +46,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-migration-v0-v9/.babelrc.json b/packages/react-components/react-migration-v0-v9/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-migration-v0-v9/.babelrc.json +++ b/packages/react-components/react-migration-v0-v9/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-migration-v0-v9/.swcrc b/packages/react-components/react-migration-v0-v9/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-migration-v0-v9/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-migration-v0-v9/just.config.ts b/packages/react-components/react-migration-v0-v9/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-migration-v0-v9/just.config.ts +++ b/packages/react-components/react-migration-v0-v9/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-migration-v0-v9/package.json b/packages/react-components/react-migration-v0-v9/package.json index 11f6a347deb39..f7c477c86ec3d 100644 --- a/packages/react-components/react-migration-v0-v9/package.json +++ b/packages/react-components/react-migration-v0-v9/package.json @@ -20,7 +20,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "storybook": "start-storybook", "start": "yarn storybook" }, @@ -37,9 +37,9 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0", "@fluentui/react-components": "^9.18.2", - "@fluentui/react-northstar": "^0.66.4" + "@fluentui/react-northstar": "^0.66.4", + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-migration-v8-v9/.babelrc.json b/packages/react-components/react-migration-v8-v9/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-migration-v8-v9/.babelrc.json +++ b/packages/react-components/react-migration-v8-v9/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-migration-v8-v9/.swcrc b/packages/react-components/react-migration-v8-v9/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-migration-v8-v9/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-migration-v8-v9/just.config.ts b/packages/react-components/react-migration-v8-v9/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-migration-v8-v9/just.config.ts +++ b/packages/react-components/react-migration-v8-v9/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-migration-v8-v9/package.json b/packages/react-components/react-migration-v8-v9/package.json index 1608a1a543a5c..c9ed745414f89 100644 --- a/packages/react-components/react-migration-v8-v9/package.json +++ b/packages/react-components/react-migration-v8-v9/package.json @@ -19,7 +19,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "storybook": "start-storybook", "start": "yarn storybook" }, @@ -39,7 +39,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-overflow/.babelrc.json b/packages/react-components/react-overflow/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-overflow/.babelrc.json +++ b/packages/react-components/react-overflow/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-overflow/.swcrc b/packages/react-components/react-overflow/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-overflow/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-overflow/just.config.ts b/packages/react-components/react-overflow/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-overflow/just.config.ts +++ b/packages/react-components/react-overflow/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-overflow/package.json b/packages/react-components/react-overflow/package.json index 7caeef341920c..7b12561c188b2 100644 --- a/packages/react-components/react-overflow/package.json +++ b/packages/react-components/react-overflow/package.json @@ -24,7 +24,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -38,7 +38,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-persona/.babelrc.json b/packages/react-components/react-persona/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-persona/.babelrc.json +++ b/packages/react-components/react-persona/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-persona/.swcrc b/packages/react-components/react-persona/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-persona/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-persona/just.config.ts b/packages/react-components/react-persona/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-persona/just.config.ts +++ b/packages/react-components/react-persona/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-persona/package.json b/packages/react-components/react-persona/package.json index ebef14fa51080..bea59a76800b7 100644 --- a/packages/react-components/react-persona/package.json +++ b/packages/react-components/react-persona/package.json @@ -22,7 +22,7 @@ "type-check": "tsc -b tsconfig.json", "storybook": "start-storybook", "start": "yarn storybook", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -38,7 +38,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-popover/.babelrc.json b/packages/react-components/react-popover/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-popover/.babelrc.json +++ b/packages/react-components/react-popover/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-popover/.swcrc b/packages/react-components/react-popover/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-popover/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-popover/just.config.ts b/packages/react-components/react-popover/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-popover/just.config.ts +++ b/packages/react-components/react-popover/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-popover/package.json b/packages/react-components/react-popover/package.json index 25bae473e3a96..00abe02549fa1 100644 --- a/packages/react-components/react-popover/package.json +++ b/packages/react-components/react-popover/package.json @@ -24,7 +24,7 @@ "storybook": "start-storybook", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -45,7 +45,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-portal-compat-context/.babelrc.json b/packages/react-components/react-portal-compat-context/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-portal-compat-context/.babelrc.json +++ b/packages/react-components/react-portal-compat-context/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-portal-compat-context/.swcrc b/packages/react-components/react-portal-compat-context/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-portal-compat-context/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-portal-compat-context/just.config.ts b/packages/react-components/react-portal-compat-context/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-portal-compat-context/just.config.ts +++ b/packages/react-components/react-portal-compat-context/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-portal-compat-context/package.json b/packages/react-components/react-portal-compat-context/package.json index bd6969c832a7e..894cb4d6dad21 100644 --- a/packages/react-components/react-portal-compat-context/package.json +++ b/packages/react-components/react-portal-compat-context/package.json @@ -19,7 +19,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -27,7 +27,7 @@ "@fluentui/scripts-tasks": "*" }, "dependencies": { - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-portal-compat/.babelrc.json b/packages/react-components/react-portal-compat/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-portal-compat/.babelrc.json +++ b/packages/react-components/react-portal-compat/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-portal-compat/.swcrc b/packages/react-components/react-portal-compat/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-portal-compat/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-portal-compat/just.config.ts b/packages/react-components/react-portal-compat/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-portal-compat/just.config.ts +++ b/packages/react-components/react-portal-compat/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-portal-compat/package.json b/packages/react-components/react-portal-compat/package.json index 6d5b37726c622..7863d6339e375 100644 --- a/packages/react-components/react-portal-compat/package.json +++ b/packages/react-components/react-portal-compat/package.json @@ -22,7 +22,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -35,7 +35,7 @@ "dependencies": { "@fluentui/react-portal-compat-context": "^9.0.4", "@fluentui/react-tabster": "^9.6.0", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@fluentui/react-components": "^9.18.2", diff --git a/packages/react-components/react-portal/.babelrc.json b/packages/react-components/react-portal/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-portal/.babelrc.json +++ b/packages/react-components/react-portal/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-portal/.swcrc b/packages/react-components/react-portal/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-portal/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-portal/just.config.ts b/packages/react-components/react-portal/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-portal/just.config.ts +++ b/packages/react-components/react-portal/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-portal/package.json b/packages/react-components/react-portal/package.json index 464accf9afe65..04c2555c3753e 100644 --- a/packages/react-components/react-portal/package.json +++ b/packages/react-components/react-portal/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -35,7 +35,7 @@ "@fluentui/react-tabster": "^9.6.0", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0", + "@swc/helpers": "^0.4.14", "use-disposable": "^1.0.1" }, "peerDependencies": { diff --git a/packages/react-components/react-positioning/.babelrc.json b/packages/react-components/react-positioning/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-positioning/.babelrc.json +++ b/packages/react-components/react-positioning/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-positioning/.swcrc b/packages/react-components/react-positioning/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-positioning/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-positioning/just.config.ts b/packages/react-components/react-positioning/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-positioning/just.config.ts +++ b/packages/react-components/react-positioning/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-positioning/package.json b/packages/react-components/react-positioning/package.json index 7ceada4cd67bc..f121d9a7a94d5 100644 --- a/packages/react-components/react-positioning/package.json +++ b/packages/react-components/react-positioning/package.json @@ -20,7 +20,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -33,7 +33,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-progress/.babelrc.json b/packages/react-components/react-progress/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-progress/.babelrc.json +++ b/packages/react-components/react-progress/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-progress/.swcrc b/packages/react-components/react-progress/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-progress/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-progress/just.config.ts b/packages/react-components/react-progress/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-progress/just.config.ts +++ b/packages/react-components/react-progress/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-progress/package.json b/packages/react-components/react-progress/package.json index 8a1b5204450bf..820171d3e1348 100644 --- a/packages/react-components/react-progress/package.json +++ b/packages/react-components/react-progress/package.json @@ -22,7 +22,7 @@ "type-check": "tsc -b tsconfig.json", "storybook": "start-storybook", "start": "yarn storybook", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -37,7 +37,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-provider/.babelrc.json b/packages/react-components/react-provider/.babelrc.json index b805fa7f124a4..7579cfec3c84d 100644 --- a/packages/react-components/react-provider/.babelrc.json +++ b/packages/react-components/react-provider/.babelrc.json @@ -1,4 +1,25 @@ { - "presets": [["@griffel", { "modules": [{ "moduleSource": "@griffel/core", "importName": "makeStyles" }] }]], + "presets": [ + [ + "@griffel", + { + "babelOptions": { + "plugins": [ + [ + "babel-plugin-module-resolver", + { + "root": ["../../../"], + "alias": { + "@fluentui/tokens": "packages/tokens/lib/index.js", + "^@fluentui/(?!react-icons)(.+)": "packages/react-components/\\1/lib/index.js" + } + } + ] + ] + }, + "modules": [{ "moduleSource": "@griffel/core", "importName": "makeStyles" }] + } + ] + ], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-provider/.swcrc b/packages/react-components/react-provider/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-provider/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-provider/just.config.ts b/packages/react-components/react-provider/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-provider/just.config.ts +++ b/packages/react-components/react-provider/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-provider/package.json b/packages/react-components/react-provider/package.json index a3a705a7afe1e..6b6a45d87432f 100644 --- a/packages/react-components/react-provider/package.json +++ b/packages/react-components/react-provider/package.json @@ -22,7 +22,7 @@ "storybook": "start-storybook", "start": "yarn storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -38,7 +38,7 @@ "@fluentui/react-tabster": "^9.6.0", "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-radio/.babelrc.json b/packages/react-components/react-radio/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-radio/.babelrc.json +++ b/packages/react-components/react-radio/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-radio/.swcrc b/packages/react-components/react-radio/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-radio/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-radio/just.config.ts b/packages/react-components/react-radio/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-radio/just.config.ts +++ b/packages/react-components/react-radio/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-radio/package.json b/packages/react-components/react-radio/package.json index 7782cef2a3cd4..a852e0290a1ac 100644 --- a/packages/react-components/react-radio/package.json +++ b/packages/react-components/react-radio/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -41,7 +41,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-select/.babelrc.json b/packages/react-components/react-select/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-select/.babelrc.json +++ b/packages/react-components/react-select/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-select/.swcrc b/packages/react-components/react-select/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-select/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-select/just.config.ts b/packages/react-components/react-select/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-select/just.config.ts +++ b/packages/react-components/react-select/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-select/package.json b/packages/react-components/react-select/package.json index 94be3c497aacd..33d057fc91aee 100644 --- a/packages/react-components/react-select/package.json +++ b/packages/react-components/react-select/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -38,7 +38,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-shared-contexts/.babelrc.json b/packages/react-components/react-shared-contexts/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-shared-contexts/.babelrc.json +++ b/packages/react-components/react-shared-contexts/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-shared-contexts/.swcrc b/packages/react-components/react-shared-contexts/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-shared-contexts/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-shared-contexts/just.config.ts b/packages/react-components/react-shared-contexts/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-shared-contexts/just.config.ts +++ b/packages/react-components/react-shared-contexts/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-shared-contexts/package.json b/packages/react-components/react-shared-contexts/package.json index b43b63033d0ee..d09822c40773a 100644 --- a/packages/react-components/react-shared-contexts/package.json +++ b/packages/react-components/react-shared-contexts/package.json @@ -19,7 +19,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -28,7 +28,7 @@ }, "dependencies": { "@fluentui/react-theme": "^9.1.6", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-skeleton/.babelrc.json b/packages/react-components/react-skeleton/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-skeleton/.babelrc.json +++ b/packages/react-components/react-skeleton/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-skeleton/.swcrc b/packages/react-components/react-skeleton/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-skeleton/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-skeleton/just.config.ts b/packages/react-components/react-skeleton/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-skeleton/just.config.ts +++ b/packages/react-components/react-skeleton/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-skeleton/package.json b/packages/react-components/react-skeleton/package.json index 4a5aa91d068f9..5b3ab152d155a 100644 --- a/packages/react-components/react-skeleton/package.json +++ b/packages/react-components/react-skeleton/package.json @@ -18,7 +18,7 @@ "just": "just-scripts", "lint": "just-scripts lint", "test": "jest --passWithNoTests", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "type-check": "tsc -b tsconfig.json", "storybook": "start-storybook", "start": "yarn storybook" @@ -36,7 +36,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-slider/.babelrc.json b/packages/react-components/react-slider/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-slider/.babelrc.json +++ b/packages/react-components/react-slider/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-slider/.swcrc b/packages/react-components/react-slider/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-slider/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-slider/just.config.ts b/packages/react-components/react-slider/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-slider/just.config.ts +++ b/packages/react-components/react-slider/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-slider/package.json b/packages/react-components/react-slider/package.json index 7b8efc96201af..16204467fc1ff 100644 --- a/packages/react-components/react-slider/package.json +++ b/packages/react-components/react-slider/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -39,7 +39,7 @@ "@fluentui/react-tabster": "^9.6.0", "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-spinbutton/.babelrc.json b/packages/react-components/react-spinbutton/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-spinbutton/.babelrc.json +++ b/packages/react-components/react-spinbutton/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-spinbutton/.swcrc b/packages/react-components/react-spinbutton/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-spinbutton/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-spinbutton/just.config.ts b/packages/react-components/react-spinbutton/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-spinbutton/just.config.ts +++ b/packages/react-components/react-spinbutton/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-spinbutton/package.json b/packages/react-components/react-spinbutton/package.json index 6ee1e5dbf1d2a..951203fa1c03a 100644 --- a/packages/react-components/react-spinbutton/package.json +++ b/packages/react-components/react-spinbutton/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -40,7 +40,7 @@ "@fluentui/react-shared-contexts": "^9.3.1", "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-spinner/.babelrc.json b/packages/react-components/react-spinner/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-spinner/.babelrc.json +++ b/packages/react-components/react-spinner/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-spinner/.swcrc b/packages/react-components/react-spinner/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-spinner/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-spinner/just.config.ts b/packages/react-components/react-spinner/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-spinner/just.config.ts +++ b/packages/react-components/react-spinner/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-spinner/package.json b/packages/react-components/react-spinner/package.json index e4546f3cbbfb3..a55f340fd9b56 100644 --- a/packages/react-components/react-spinner/package.json +++ b/packages/react-components/react-spinner/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -37,7 +37,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-storybook-addon-codesandbox/.babelrc.json b/packages/react-components/react-storybook-addon-codesandbox/.babelrc.json index 80286a9e4c250..38bf1f7a945cf 100644 --- a/packages/react-components/react-storybook-addon-codesandbox/.babelrc.json +++ b/packages/react-components/react-storybook-addon-codesandbox/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], - "plugins": ["annotate-pure-calls"] + "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-storybook-addon-codesandbox/.swcrc b/packages/react-components/react-storybook-addon-codesandbox/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-storybook-addon-codesandbox/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-storybook-addon-codesandbox/just.config.ts b/packages/react-components/react-storybook-addon-codesandbox/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-storybook-addon-codesandbox/just.config.ts +++ b/packages/react-components/react-storybook-addon-codesandbox/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-storybook-addon-codesandbox/package.json b/packages/react-components/react-storybook-addon-codesandbox/package.json index 39c7ae8b7b813..982cf0add8ee8 100644 --- a/packages/react-components/react-storybook-addon-codesandbox/package.json +++ b/packages/react-components/react-storybook-addon-codesandbox/package.json @@ -19,7 +19,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -27,9 +27,9 @@ "@fluentui/scripts-tasks": "*" }, "dependencies": { - "tslib": "^2.1.0", - "codesandbox-import-utils": "2.2.3", + "@swc/helpers": "^0.4.14", "@types/dedent": "0.7.0", + "codesandbox-import-utils": "2.2.3", "dedent": "0.7.0" }, "peerDependencies": { @@ -38,12 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "import": "./lib/index.js", "node": "./lib-commonjs/index.js", "require": "./lib-commonjs/index.js" }, - "./preset": { - "require": "./preset.js" - }, "./package.json": "./package.json" } } diff --git a/packages/react-components/react-storybook-addon/.babelrc.json b/packages/react-components/react-storybook-addon/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-storybook-addon/.babelrc.json +++ b/packages/react-components/react-storybook-addon/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-storybook-addon/.swcrc b/packages/react-components/react-storybook-addon/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-storybook-addon/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-storybook-addon/just.config.ts b/packages/react-components/react-storybook-addon/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-storybook-addon/just.config.ts +++ b/packages/react-components/react-storybook-addon/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-storybook-addon/package.json b/packages/react-components/react-storybook-addon/package.json index 25b43c38f7386..6a76c54c6f531 100644 --- a/packages/react-components/react-storybook-addon/package.json +++ b/packages/react-components/react-storybook-addon/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -32,7 +32,7 @@ "dependencies": { "@fluentui/react-theme": "^9.1.6", "@fluentui/react-provider": "^9.4.4", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", @@ -57,9 +57,6 @@ "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, - "./preset": { - "require": "./preset.js" - }, "./package.json": "./package.json" } } diff --git a/packages/react-components/react-switch/.babelrc.json b/packages/react-components/react-switch/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-switch/.babelrc.json +++ b/packages/react-components/react-switch/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-switch/.swcrc b/packages/react-components/react-switch/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-switch/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-switch/just.config.ts b/packages/react-components/react-switch/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-switch/just.config.ts +++ b/packages/react-components/react-switch/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-switch/package.json b/packages/react-components/react-switch/package.json index d351bef0c9cb6..432ac1c9467c6 100644 --- a/packages/react-components/react-switch/package.json +++ b/packages/react-components/react-switch/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -40,7 +40,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-table/.babelrc.json b/packages/react-components/react-table/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-table/.babelrc.json +++ b/packages/react-components/react-table/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-table/.swcrc b/packages/react-components/react-table/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-table/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-table/just.config.ts b/packages/react-components/react-table/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-table/just.config.ts +++ b/packages/react-components/react-table/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-table/package.json b/packages/react-components/react-table/package.json index 4837b5ec38f8a..312b97b4d30d9 100644 --- a/packages/react-components/react-table/package.json +++ b/packages/react-components/react-table/package.json @@ -22,7 +22,7 @@ "type-check": "tsc -b tsconfig.json", "storybook": "start-storybook", "start": "yarn storybook", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -44,7 +44,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-tabs/.babelrc.json b/packages/react-components/react-tabs/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-tabs/.babelrc.json +++ b/packages/react-components/react-tabs/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-tabs/.swcrc b/packages/react-components/react-tabs/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-tabs/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-tabs/just.config.ts b/packages/react-components/react-tabs/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-tabs/just.config.ts +++ b/packages/react-components/react-tabs/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-tabs/package.json b/packages/react-components/react-tabs/package.json index a6f7159536895..d1264a11fb0f6 100644 --- a/packages/react-components/react-tabs/package.json +++ b/packages/react-components/react-tabs/package.json @@ -21,7 +21,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -37,7 +37,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-tabster/.babelrc.json b/packages/react-components/react-tabster/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-tabster/.babelrc.json +++ b/packages/react-components/react-tabster/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-tabster/.swcrc b/packages/react-components/react-tabster/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-tabster/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-tabster/just.config.ts b/packages/react-components/react-tabster/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-tabster/just.config.ts +++ b/packages/react-components/react-tabster/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-tabster/package.json b/packages/react-components/react-tabster/package.json index 802f9f6492d5d..2f19d5e0cc060 100644 --- a/packages/react-components/react-tabster/package.json +++ b/packages/react-components/react-tabster/package.json @@ -21,7 +21,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -34,9 +34,9 @@ "@fluentui/react-shared-contexts": "^9.3.1", "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", + "@swc/helpers": "^0.4.14", "keyborg": "^2.0.0", - "tabster": "^4.1.1", - "tslib": "^2.1.0" + "tabster": "^4.1.1" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-tags/.babelrc.json b/packages/react-components/react-tags/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-tags/.babelrc.json +++ b/packages/react-components/react-tags/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-tags/.swcrc b/packages/react-components/react-tags/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-tags/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-tags/just.config.ts b/packages/react-components/react-tags/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-tags/just.config.ts +++ b/packages/react-components/react-tags/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-tags/package.json b/packages/react-components/react-tags/package.json index 63cb7d5b81460..e871bce232972 100644 --- a/packages/react-components/react-tags/package.json +++ b/packages/react-components/react-tags/package.json @@ -20,7 +20,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "storybook": "start-storybook", "start": "yarn storybook" }, @@ -35,7 +35,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-text/.babelrc.json b/packages/react-components/react-text/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-text/.babelrc.json +++ b/packages/react-components/react-text/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-text/.swcrc b/packages/react-components/react-text/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-text/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-text/just.config.ts b/packages/react-components/react-text/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-text/just.config.ts +++ b/packages/react-components/react-text/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-text/package.json b/packages/react-components/react-text/package.json index b07a62bc7495a..9bf77f09d783a 100644 --- a/packages/react-components/react-text/package.json +++ b/packages/react-components/react-text/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -36,7 +36,7 @@ "@fluentui/react-theme": "^9.1.6", "@griffel/react": "^1.5.2", "@fluentui/react-utilities": "^9.7.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-textarea/.babelrc.json b/packages/react-components/react-textarea/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-textarea/.babelrc.json +++ b/packages/react-components/react-textarea/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-textarea/.swcrc b/packages/react-components/react-textarea/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-textarea/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-textarea/just.config.ts b/packages/react-components/react-textarea/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-textarea/just.config.ts +++ b/packages/react-components/react-textarea/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-textarea/package.json b/packages/react-components/react-textarea/package.json index 3f1bfe4ca315a..2e9e0dbd1d170 100644 --- a/packages/react-components/react-textarea/package.json +++ b/packages/react-components/react-textarea/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -37,7 +37,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-theme-sass/.babelrc.json b/packages/react-components/react-theme-sass/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-theme-sass/.babelrc.json +++ b/packages/react-components/react-theme-sass/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-theme-sass/.swcrc b/packages/react-components/react-theme-sass/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-theme-sass/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-theme-sass/just.config.ts b/packages/react-components/react-theme-sass/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-theme-sass/just.config.ts +++ b/packages/react-components/react-theme-sass/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-theme-sass/package.json b/packages/react-components/react-theme-sass/package.json index dc42956f857d6..17855687aceec 100644 --- a/packages/react-components/react-theme-sass/package.json +++ b/packages/react-components/react-theme-sass/package.json @@ -20,7 +20,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -35,7 +35,9 @@ "patch" ] }, - "dependencies": {}, + "dependencies": { + "@swc/helpers": "^0.4.14" + }, "exports": { ".": { "types": "./dist/index.d.ts", diff --git a/packages/react-components/react-theme/.babelrc.json b/packages/react-components/react-theme/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-theme/.babelrc.json +++ b/packages/react-components/react-theme/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-theme/.swcrc b/packages/react-components/react-theme/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-theme/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-theme/just.config.ts b/packages/react-components/react-theme/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-theme/just.config.ts +++ b/packages/react-components/react-theme/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-theme/package.json b/packages/react-components/react-theme/package.json index 1d07614cb5353..b5a9abb272cf6 100644 --- a/packages/react-components/react-theme/package.json +++ b/packages/react-components/react-theme/package.json @@ -22,7 +22,7 @@ "storybook": "start-storybook", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -30,8 +30,8 @@ "@fluentui/scripts-tasks": "*" }, "dependencies": { - "tslib": "^2.1.0", - "@fluentui/tokens": "1.0.0-alpha.3" + "@fluentui/tokens": "1.0.0-alpha.3", + "@swc/helpers": "^0.4.14" }, "beachball": { "disallowedChangeTypes": [ diff --git a/packages/react-components/react-toolbar/.babelrc.json b/packages/react-components/react-toolbar/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-toolbar/.babelrc.json +++ b/packages/react-components/react-toolbar/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-toolbar/.swcrc b/packages/react-components/react-toolbar/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-toolbar/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-toolbar/just.config.ts b/packages/react-components/react-toolbar/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-toolbar/just.config.ts +++ b/packages/react-components/react-toolbar/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-toolbar/package.json b/packages/react-components/react-toolbar/package.json index be1fb8646d435..06c95df311478 100644 --- a/packages/react-components/react-toolbar/package.json +++ b/packages/react-components/react-toolbar/package.json @@ -23,7 +23,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -43,7 +43,7 @@ "@fluentui/react-shared-contexts": "^9.3.1", "@fluentui/react-tabster": "^9.6.0", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-tooltip/.babelrc.json b/packages/react-components/react-tooltip/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-tooltip/.babelrc.json +++ b/packages/react-components/react-tooltip/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-tooltip/.swcrc b/packages/react-components/react-tooltip/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-tooltip/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-tooltip/just.config.ts b/packages/react-components/react-tooltip/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-tooltip/just.config.ts +++ b/packages/react-components/react-tooltip/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-tooltip/package.json b/packages/react-components/react-tooltip/package.json index da5fe73edda49..555f92724eff2 100644 --- a/packages/react-components/react-tooltip/package.json +++ b/packages/react-components/react-tooltip/package.json @@ -22,7 +22,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -39,7 +39,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-tree/.babelrc.json b/packages/react-components/react-tree/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-tree/.babelrc.json +++ b/packages/react-components/react-tree/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-tree/.swcrc b/packages/react-components/react-tree/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-tree/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-tree/just.config.ts b/packages/react-components/react-tree/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-tree/just.config.ts +++ b/packages/react-components/react-tree/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-tree/package.json b/packages/react-components/react-tree/package.json index 8b74c178c5a2c..72b343e5f80e4 100644 --- a/packages/react-components/react-tree/package.json +++ b/packages/react-components/react-tree/package.json @@ -20,7 +20,7 @@ "test": "jest --passWithNoTests", "e2e": "cypress run --component", "e2e:local": "cypress open --component", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "type-check": "tsc -b tsconfig.json", "storybook": "start-storybook", "start": "yarn storybook" @@ -47,7 +47,7 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-utilities/.babelrc.json b/packages/react-components/react-utilities/.babelrc.json index 0b00fa93139ea..38bf1f7a945cf 100644 --- a/packages/react-components/react-utilities/.babelrc.json +++ b/packages/react-components/react-utilities/.babelrc.json @@ -1,4 +1,3 @@ { - "presets": [], "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-utilities/.swcrc b/packages/react-components/react-utilities/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-utilities/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-utilities/just.config.ts b/packages/react-components/react-utilities/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-utilities/just.config.ts +++ b/packages/react-components/react-utilities/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-utilities/package.json b/packages/react-components/react-utilities/package.json index 4a4f8e7d873b3..5dfee614da84c 100644 --- a/packages/react-components/react-utilities/package.json +++ b/packages/react-components/react-utilities/package.json @@ -20,7 +20,7 @@ "lint": "just-scripts lint", "test": "jest --passWithNoTests", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -29,7 +29,7 @@ }, "dependencies": { "@fluentui/keyboard-keys": "^9.0.1", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/react-virtualizer/.babelrc.json b/packages/react-components/react-virtualizer/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/react-virtualizer/.babelrc.json +++ b/packages/react-components/react-virtualizer/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/react-virtualizer/.swcrc b/packages/react-components/react-virtualizer/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-virtualizer/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-virtualizer/just.config.ts b/packages/react-components/react-virtualizer/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/react-virtualizer/just.config.ts +++ b/packages/react-components/react-virtualizer/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-virtualizer/package.json b/packages/react-components/react-virtualizer/package.json index 6cfac12e11cce..2661121d1b5a5 100644 --- a/packages/react-components/react-virtualizer/package.json +++ b/packages/react-components/react-virtualizer/package.json @@ -20,7 +20,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "start": "yarn storybook", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor", + "generate-api": "just-scripts generate-api", "type-check": "tsc -b tsconfig.json" }, "devDependencies": { @@ -33,7 +33,7 @@ "dependencies": { "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/react-components/theme-designer/.babelrc.json b/packages/react-components/theme-designer/.babelrc.json index 40e01373083ce..45fb71ca16d2c 100644 --- a/packages/react-components/theme-designer/.babelrc.json +++ b/packages/react-components/theme-designer/.babelrc.json @@ -1,4 +1,4 @@ { - "presets": ["@griffel"], + "extends": "../../../.babelrc-v9.json", "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/react-components/theme-designer/.swcrc b/packages/react-components/theme-designer/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/theme-designer/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/theme-designer/just.config.ts b/packages/react-components/theme-designer/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/react-components/theme-designer/just.config.ts +++ b/packages/react-components/theme-designer/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/theme-designer/package.json b/packages/react-components/theme-designer/package.json index 4b3a3839f751f..4b73ccdc3e088 100644 --- a/packages/react-components/theme-designer/package.json +++ b/packages/react-components/theme-designer/package.json @@ -23,7 +23,7 @@ "test": "jest --passWithNoTests", "storybook": "start-storybook", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -39,9 +39,9 @@ "@fluentui/react-theme": "^9.1.6", "@fluentui/react-utilities": "^9.7.1", "@griffel/react": "^1.5.2", + "@swc/helpers": "^0.4.14", "@types/dedent": "0.7.0", - "codesandbox-import-utils": "2.2.3", - "tslib": "^2.1.0" + "codesandbox-import-utils": "2.2.3" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", diff --git a/packages/tokens/.babelrc.json b/packages/tokens/.babelrc.json index 435587beba588..38bf1f7a945cf 100644 --- a/packages/tokens/.babelrc.json +++ b/packages/tokens/.babelrc.json @@ -1,3 +1,3 @@ { - "plugins": ["annotate-pure-calls"] + "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] } diff --git a/packages/tokens/.swcrc b/packages/tokens/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/tokens/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/tokens/just.config.ts b/packages/tokens/just.config.ts index b10db31a6aca5..b7b2c9a33bf43 100644 --- a/packages/tokens/just.config.ts +++ b/packages/tokens/just.config.ts @@ -1,3 +1,5 @@ -import { preset } from '@fluentui/scripts-tasks'; +import { preset, task } from '@fluentui/scripts-tasks'; preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 318d91a06a6eb..10bd1e0383407 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -20,7 +20,7 @@ "test": "jest --passWithNoTests", "token-pipeline": "node -r ../../scripts/ts-node/register ../../scripts/generators/token-pipeline.ts", "type-check": "tsc -b tsconfig.json", - "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" + "generate-api": "just-scripts generate-api" }, "devDependencies": { "@fluentui/eslint-plugin": "*", @@ -28,7 +28,7 @@ "@fluentui/scripts-tasks": "*" }, "dependencies": { - "tslib": "^2.1.0" + "@swc/helpers": "^0.4.14" }, "beachball": { "disallowedChangeTypes": [ diff --git a/yarn.lock b/yarn.lock index 1557c4d69c953..206396b996d95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4909,7 +4909,7 @@ "@swc/core-win32-ia32-msvc" "1.3.30" "@swc/core-win32-x64-msvc" "1.3.30" -"@swc/helpers@0.4.14": +"@swc/helpers@0.4.14", "@swc/helpers@^0.4.14": version "0.4.14" resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.14.tgz#1352ac6d95e3617ccb7c1498ff019654f1e12a74" integrity sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==