diff --git a/change/@fluentui-chart-utilities-b37959c8-1fc0-4957-bef8-ef7436cd7541.json b/change/@fluentui-chart-utilities-b37959c8-1fc0-4957-bef8-ef7436cd7541.json new file mode 100644 index 0000000000000..2b8283dd3fdb6 --- /dev/null +++ b/change/@fluentui-chart-utilities-b37959c8-1fc0-4957-bef8-ef7436cd7541.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/chart-utilities", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-global-context-e8e7b932-bc36-4fdc-9be9-1e12a1d8a949.json b/change/@fluentui-global-context-e8e7b932-bc36-4fdc-9be9-1e12a1d8a949.json new file mode 100644 index 0000000000000..9e70b9ed9a63b --- /dev/null +++ b/change/@fluentui-global-context-e8e7b932-bc36-4fdc-9be9-1e12a1d8a949.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/global-context", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-keyboard-keys-c678d39e-975b-4d2e-ae1a-de3f97489383.json b/change/@fluentui-keyboard-keys-c678d39e-975b-4d2e-ae1a-de3f97489383.json new file mode 100644 index 0000000000000..75264f28054c4 --- /dev/null +++ b/change/@fluentui-keyboard-keys-c678d39e-975b-4d2e-ae1a-de3f97489383.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/keyboard-keys", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-priority-overflow-ddd98c10-4c8d-4597-b296-50c33b97a811.json b/change/@fluentui-priority-overflow-ddd98c10-4c8d-4597-b296-50c33b97a811.json new file mode 100644 index 0000000000000..21698894dd5a9 --- /dev/null +++ b/change/@fluentui-priority-overflow-ddd98c10-4c8d-4597-b296-50c33b97a811.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/priority-overflow", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-accordion-24a1d1e2-1ae3-4d6b-8128-eb7dfe95f499.json b/change/@fluentui-react-accordion-24a1d1e2-1ae3-4d6b-8128-eb7dfe95f499.json new file mode 100644 index 0000000000000..7d53320b4ee35 --- /dev/null +++ b/change/@fluentui-react-accordion-24a1d1e2-1ae3-4d6b-8128-eb7dfe95f499.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-accordion", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-alert-a83574d9-d54d-47b0-b58f-96aefc791571.json b/change/@fluentui-react-alert-a83574d9-d54d-47b0-b58f-96aefc791571.json new file mode 100644 index 0000000000000..92e3215972644 --- /dev/null +++ b/change/@fluentui-react-alert-a83574d9-d54d-47b0-b58f-96aefc791571.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-alert", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-aria-ec2def8d-af70-4c22-ae1a-b6dacb83e837.json b/change/@fluentui-react-aria-ec2def8d-af70-4c22-ae1a-b6dacb83e837.json new file mode 100644 index 0000000000000..fa687c24d67a6 --- /dev/null +++ b/change/@fluentui-react-aria-ec2def8d-af70-4c22-ae1a-b6dacb83e837.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-aria", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-avatar-6ecfeed1-dee8-46f7-8e45-cff428e62deb.json b/change/@fluentui-react-avatar-6ecfeed1-dee8-46f7-8e45-cff428e62deb.json new file mode 100644 index 0000000000000..747723ac86c41 --- /dev/null +++ b/change/@fluentui-react-avatar-6ecfeed1-dee8-46f7-8e45-cff428e62deb.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-avatar", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-badge-36d58dfa-d47a-4090-b6df-3ddc9eae27e8.json b/change/@fluentui-react-badge-36d58dfa-d47a-4090-b6df-3ddc9eae27e8.json new file mode 100644 index 0000000000000..1621dd86a83b3 --- /dev/null +++ b/change/@fluentui-react-badge-36d58dfa-d47a-4090-b6df-3ddc9eae27e8.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-badge", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-breadcrumb-8830165f-d40a-48dd-9420-8e44e6e37c64.json b/change/@fluentui-react-breadcrumb-8830165f-d40a-48dd-9420-8e44e6e37c64.json new file mode 100644 index 0000000000000..0c3acb10f7038 --- /dev/null +++ b/change/@fluentui-react-breadcrumb-8830165f-d40a-48dd-9420-8e44e6e37c64.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-breadcrumb", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-button-5ca0f2ec-a203-47ba-af0b-af4795b41072.json b/change/@fluentui-react-button-5ca0f2ec-a203-47ba-af0b-af4795b41072.json new file mode 100644 index 0000000000000..1daad9d8b8bf1 --- /dev/null +++ b/change/@fluentui-react-button-5ca0f2ec-a203-47ba-af0b-af4795b41072.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-button", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-calendar-compat-a322fd69-9454-4406-a10f-2ab9c809f3ee.json b/change/@fluentui-react-calendar-compat-a322fd69-9454-4406-a10f-2ab9c809f3ee.json new file mode 100644 index 0000000000000..cea7ebb4ba684 --- /dev/null +++ b/change/@fluentui-react-calendar-compat-a322fd69-9454-4406-a10f-2ab9c809f3ee.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-calendar-compat", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-card-e94fecd0-f1b0-4726-a65b-8ea1e905b3c0.json b/change/@fluentui-react-card-e94fecd0-f1b0-4726-a65b-8ea1e905b3c0.json new file mode 100644 index 0000000000000..d09b80d700c62 --- /dev/null +++ b/change/@fluentui-react-card-e94fecd0-f1b0-4726-a65b-8ea1e905b3c0.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-card", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-carousel-6907df6f-c557-487f-b926-dcea2ad9db44.json b/change/@fluentui-react-carousel-6907df6f-c557-487f-b926-dcea2ad9db44.json new file mode 100644 index 0000000000000..b268cfb3e9ee3 --- /dev/null +++ b/change/@fluentui-react-carousel-6907df6f-c557-487f-b926-dcea2ad9db44.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-carousel", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-charts-6c79d2b2-1236-4326-8d7e-3b95706edd2c.json b/change/@fluentui-react-charts-6c79d2b2-1236-4326-8d7e-3b95706edd2c.json new file mode 100644 index 0000000000000..7d92e2c463210 --- /dev/null +++ b/change/@fluentui-react-charts-6c79d2b2-1236-4326-8d7e-3b95706edd2c.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-charts", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-checkbox-4c5c4691-f756-4134-be64-866fab3b2c70.json b/change/@fluentui-react-checkbox-4c5c4691-f756-4134-be64-866fab3b2c70.json new file mode 100644 index 0000000000000..1854740ec3f2a --- /dev/null +++ b/change/@fluentui-react-checkbox-4c5c4691-f756-4134-be64-866fab3b2c70.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-checkbox", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-color-picker-c39025a0-527e-43a7-bdb2-b8f3f6f32653.json b/change/@fluentui-react-color-picker-c39025a0-527e-43a7-bdb2-b8f3f6f32653.json new file mode 100644 index 0000000000000..509c43adea300 --- /dev/null +++ b/change/@fluentui-react-color-picker-c39025a0-527e-43a7-bdb2-b8f3f6f32653.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-color-picker", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-combobox-2279c1cb-6864-4788-bac7-0505dde975b2.json b/change/@fluentui-react-combobox-2279c1cb-6864-4788-bac7-0505dde975b2.json new file mode 100644 index 0000000000000..0653a39bf26ea --- /dev/null +++ b/change/@fluentui-react-combobox-2279c1cb-6864-4788-bac7-0505dde975b2.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-combobox", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-components-afa0f223-70bc-49a0-85ef-5ccb4feff18a.json b/change/@fluentui-react-components-afa0f223-70bc-49a0-85ef-5ccb4feff18a.json new file mode 100644 index 0000000000000..310edb376221b --- /dev/null +++ b/change/@fluentui-react-components-afa0f223-70bc-49a0-85ef-5ccb4feff18a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-components", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-context-selector-7955484a-23dc-4909-9b29-fc0cb35e56c9.json b/change/@fluentui-react-context-selector-7955484a-23dc-4909-9b29-fc0cb35e56c9.json new file mode 100644 index 0000000000000..cabc17d12fd17 --- /dev/null +++ b/change/@fluentui-react-context-selector-7955484a-23dc-4909-9b29-fc0cb35e56c9.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-context-selector", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-datepicker-compat-42a1ccdd-192d-4609-ba13-4aac94badd54.json b/change/@fluentui-react-datepicker-compat-42a1ccdd-192d-4609-ba13-4aac94badd54.json new file mode 100644 index 0000000000000..93547f8dcf197 --- /dev/null +++ b/change/@fluentui-react-datepicker-compat-42a1ccdd-192d-4609-ba13-4aac94badd54.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-datepicker-compat", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-dialog-587cb476-df03-4b70-99ca-93af982b6f50.json b/change/@fluentui-react-dialog-587cb476-df03-4b70-99ca-93af982b6f50.json new file mode 100644 index 0000000000000..6d93ec80fbfce --- /dev/null +++ b/change/@fluentui-react-dialog-587cb476-df03-4b70-99ca-93af982b6f50.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-dialog", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-divider-3f853e4d-6f0b-4fb9-87b0-485f2d4839c9.json b/change/@fluentui-react-divider-3f853e4d-6f0b-4fb9-87b0-485f2d4839c9.json new file mode 100644 index 0000000000000..cc3206a1077fc --- /dev/null +++ b/change/@fluentui-react-divider-3f853e4d-6f0b-4fb9-87b0-485f2d4839c9.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-divider", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-drawer-e194a08d-0888-40b5-a147-369a950ba288.json b/change/@fluentui-react-drawer-e194a08d-0888-40b5-a147-369a950ba288.json new file mode 100644 index 0000000000000..d7140d9757a1f --- /dev/null +++ b/change/@fluentui-react-drawer-e194a08d-0888-40b5-a147-369a950ba288.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-drawer", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-field-470f4e2f-092b-4903-bd34-d654b75731b8.json b/change/@fluentui-react-field-470f4e2f-092b-4903-bd34-d654b75731b8.json new file mode 100644 index 0000000000000..e3d5f5c330b89 --- /dev/null +++ b/change/@fluentui-react-field-470f4e2f-092b-4903-bd34-d654b75731b8.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-field", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-headless-components-preview-0cbb853a-317a-4383-a7be-92db2ea054de.json b/change/@fluentui-react-headless-components-preview-0cbb853a-317a-4383-a7be-92db2ea054de.json new file mode 100644 index 0000000000000..b9f03434726ef --- /dev/null +++ b/change/@fluentui-react-headless-components-preview-0cbb853a-317a-4383-a7be-92db2ea054de.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-headless-components-preview", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-icons-compat-3bf3eb47-ac44-4571-9305-11044a55d237.json b/change/@fluentui-react-icons-compat-3bf3eb47-ac44-4571-9305-11044a55d237.json new file mode 100644 index 0000000000000..7bcce33b047f5 --- /dev/null +++ b/change/@fluentui-react-icons-compat-3bf3eb47-ac44-4571-9305-11044a55d237.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-icons-compat", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-image-c303b1bf-f400-4a3e-9e68-a0e966bafffb.json b/change/@fluentui-react-image-c303b1bf-f400-4a3e-9e68-a0e966bafffb.json new file mode 100644 index 0000000000000..5cf6ea487b488 --- /dev/null +++ b/change/@fluentui-react-image-c303b1bf-f400-4a3e-9e68-a0e966bafffb.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-image", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-infobutton-34bbeca0-e082-464d-8820-8a545252a02d.json b/change/@fluentui-react-infobutton-34bbeca0-e082-464d-8820-8a545252a02d.json new file mode 100644 index 0000000000000..845f56f1c9903 --- /dev/null +++ b/change/@fluentui-react-infobutton-34bbeca0-e082-464d-8820-8a545252a02d.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-infobutton", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-infolabel-2c6af8d9-d1e7-4641-bf52-b59c7b159ac8.json b/change/@fluentui-react-infolabel-2c6af8d9-d1e7-4641-bf52-b59c7b159ac8.json new file mode 100644 index 0000000000000..9ea8b36a01c41 --- /dev/null +++ b/change/@fluentui-react-infolabel-2c6af8d9-d1e7-4641-bf52-b59c7b159ac8.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-infolabel", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-input-62cfaa70-308e-4d8d-b296-339766551db3.json b/change/@fluentui-react-input-62cfaa70-308e-4d8d-b296-339766551db3.json new file mode 100644 index 0000000000000..53a7a955904d4 --- /dev/null +++ b/change/@fluentui-react-input-62cfaa70-308e-4d8d-b296-339766551db3.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-input", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-jsx-runtime-0c75dc50-61fb-49f5-b472-18ad918207ba.json b/change/@fluentui-react-jsx-runtime-0c75dc50-61fb-49f5-b472-18ad918207ba.json new file mode 100644 index 0000000000000..ffe82f5bf09b7 --- /dev/null +++ b/change/@fluentui-react-jsx-runtime-0c75dc50-61fb-49f5-b472-18ad918207ba.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-jsx-runtime", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-label-5aa3bb7a-26a3-4b44-9fbc-9593db7fbfcb.json b/change/@fluentui-react-label-5aa3bb7a-26a3-4b44-9fbc-9593db7fbfcb.json new file mode 100644 index 0000000000000..84a52d5828a68 --- /dev/null +++ b/change/@fluentui-react-label-5aa3bb7a-26a3-4b44-9fbc-9593db7fbfcb.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-label", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-link-5c956aaa-9ef3-42b2-953b-af7b9b467e9e.json b/change/@fluentui-react-link-5c956aaa-9ef3-42b2-953b-af7b9b467e9e.json new file mode 100644 index 0000000000000..e5338c5f2e61c --- /dev/null +++ b/change/@fluentui-react-link-5c956aaa-9ef3-42b2-953b-af7b9b467e9e.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-link", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-list-bec2fc87-aaec-465b-9bed-e753037522a5.json b/change/@fluentui-react-list-bec2fc87-aaec-465b-9bed-e753037522a5.json new file mode 100644 index 0000000000000..b8b5d137a2641 --- /dev/null +++ b/change/@fluentui-react-list-bec2fc87-aaec-465b-9bed-e753037522a5.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-list", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-menu-a1afb852-808b-4b9b-8412-bac5ed6e3af3.json b/change/@fluentui-react-menu-a1afb852-808b-4b9b-8412-bac5ed6e3af3.json new file mode 100644 index 0000000000000..24cd123c704f4 --- /dev/null +++ b/change/@fluentui-react-menu-a1afb852-808b-4b9b-8412-bac5ed6e3af3.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-menu", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-menu-grid-preview-e3405dd1-491b-40a4-a8b6-16b1fb14a018.json b/change/@fluentui-react-menu-grid-preview-e3405dd1-491b-40a4-a8b6-16b1fb14a018.json new file mode 100644 index 0000000000000..a976ad0ee0534 --- /dev/null +++ b/change/@fluentui-react-menu-grid-preview-e3405dd1-491b-40a4-a8b6-16b1fb14a018.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-menu-grid-preview", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-message-bar-17c4c1cb-68f9-4b1a-9c16-716aa6bfd315.json b/change/@fluentui-react-message-bar-17c4c1cb-68f9-4b1a-9c16-716aa6bfd315.json new file mode 100644 index 0000000000000..6948d363cf7f9 --- /dev/null +++ b/change/@fluentui-react-message-bar-17c4c1cb-68f9-4b1a-9c16-716aa6bfd315.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-message-bar", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-migration-v0-v9-173f8687-50f3-452d-a46c-7507bb15c424.json b/change/@fluentui-react-migration-v0-v9-173f8687-50f3-452d-a46c-7507bb15c424.json new file mode 100644 index 0000000000000..7d8bb8f06573c --- /dev/null +++ b/change/@fluentui-react-migration-v0-v9-173f8687-50f3-452d-a46c-7507bb15c424.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-migration-v0-v9", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-migration-v8-v9-e0c706a9-5ec7-4f6c-b42f-0af13e508b15.json b/change/@fluentui-react-migration-v8-v9-e0c706a9-5ec7-4f6c-b42f-0af13e508b15.json new file mode 100644 index 0000000000000..489d75daad7c6 --- /dev/null +++ b/change/@fluentui-react-migration-v8-v9-e0c706a9-5ec7-4f6c-b42f-0af13e508b15.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-migration-v8-v9", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-motion-812a7dcc-49a0-403a-b3c0-fa033fae5d4e.json b/change/@fluentui-react-motion-812a7dcc-49a0-403a-b3c0-fa033fae5d4e.json new file mode 100644 index 0000000000000..62a3740180b7e --- /dev/null +++ b/change/@fluentui-react-motion-812a7dcc-49a0-403a-b3c0-fa033fae5d4e.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-motion", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-motion-components-preview-6919eecc-3e3a-4ab2-9508-2acfc8be6892.json b/change/@fluentui-react-motion-components-preview-6919eecc-3e3a-4ab2-9508-2acfc8be6892.json new file mode 100644 index 0000000000000..d30904a1da5cf --- /dev/null +++ b/change/@fluentui-react-motion-components-preview-6919eecc-3e3a-4ab2-9508-2acfc8be6892.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-motion-components-preview", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-nav-eaf56730-d52b-4309-a6af-26f425d1e4af.json b/change/@fluentui-react-nav-eaf56730-d52b-4309-a6af-26f425d1e4af.json new file mode 100644 index 0000000000000..35bdf18c2c227 --- /dev/null +++ b/change/@fluentui-react-nav-eaf56730-d52b-4309-a6af-26f425d1e4af.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-nav", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-overflow-b940e0cd-3a31-4210-a484-205bfe15aa86.json b/change/@fluentui-react-overflow-b940e0cd-3a31-4210-a484-205bfe15aa86.json new file mode 100644 index 0000000000000..cb9aec7d2e9e0 --- /dev/null +++ b/change/@fluentui-react-overflow-b940e0cd-3a31-4210-a484-205bfe15aa86.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-overflow", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-persona-fe72f585-73fd-4728-b66b-81208f5db93a.json b/change/@fluentui-react-persona-fe72f585-73fd-4728-b66b-81208f5db93a.json new file mode 100644 index 0000000000000..79870533bc67f --- /dev/null +++ b/change/@fluentui-react-persona-fe72f585-73fd-4728-b66b-81208f5db93a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-persona", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-popover-d3158fd7-1157-4349-a532-d0a9333d8d59.json b/change/@fluentui-react-popover-d3158fd7-1157-4349-a532-d0a9333d8d59.json new file mode 100644 index 0000000000000..3f1f0128d516b --- /dev/null +++ b/change/@fluentui-react-popover-d3158fd7-1157-4349-a532-d0a9333d8d59.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-popover", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-portal-7c7856eb-7a90-4391-bf5e-e46d4f8120a6.json b/change/@fluentui-react-portal-7c7856eb-7a90-4391-bf5e-e46d4f8120a6.json new file mode 100644 index 0000000000000..4655958ce6602 --- /dev/null +++ b/change/@fluentui-react-portal-7c7856eb-7a90-4391-bf5e-e46d4f8120a6.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-portal", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-portal-compat-45f99d4d-35b4-4112-99af-12aa3a6eadcd.json b/change/@fluentui-react-portal-compat-45f99d4d-35b4-4112-99af-12aa3a6eadcd.json new file mode 100644 index 0000000000000..daf3814b34add --- /dev/null +++ b/change/@fluentui-react-portal-compat-45f99d4d-35b4-4112-99af-12aa3a6eadcd.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-portal-compat", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-portal-compat-context-988005d7-a101-4dc4-8bcd-1b600e00add9.json b/change/@fluentui-react-portal-compat-context-988005d7-a101-4dc4-8bcd-1b600e00add9.json new file mode 100644 index 0000000000000..3ab52908b76e6 --- /dev/null +++ b/change/@fluentui-react-portal-compat-context-988005d7-a101-4dc4-8bcd-1b600e00add9.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-portal-compat-context", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-positioning-75c6dfb1-fbac-4e84-b2fc-3a10e6bc3e43.json b/change/@fluentui-react-positioning-75c6dfb1-fbac-4e84-b2fc-3a10e6bc3e43.json new file mode 100644 index 0000000000000..5810cf7460f83 --- /dev/null +++ b/change/@fluentui-react-positioning-75c6dfb1-fbac-4e84-b2fc-3a10e6bc3e43.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-positioning", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-progress-0d1a6e0e-460c-433f-9f2e-066f9bb123f9.json b/change/@fluentui-react-progress-0d1a6e0e-460c-433f-9f2e-066f9bb123f9.json new file mode 100644 index 0000000000000..ab88a0b98b458 --- /dev/null +++ b/change/@fluentui-react-progress-0d1a6e0e-460c-433f-9f2e-066f9bb123f9.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-progress", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-provider-3b71f083-6280-4945-840a-9e4d65059122.json b/change/@fluentui-react-provider-3b71f083-6280-4945-840a-9e4d65059122.json new file mode 100644 index 0000000000000..8bb26d3191c35 --- /dev/null +++ b/change/@fluentui-react-provider-3b71f083-6280-4945-840a-9e4d65059122.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-provider", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-radio-5a2cfd79-edb9-4bf8-b179-ed1431ee6e7f.json b/change/@fluentui-react-radio-5a2cfd79-edb9-4bf8-b179-ed1431ee6e7f.json new file mode 100644 index 0000000000000..8053d907b4c9d --- /dev/null +++ b/change/@fluentui-react-radio-5a2cfd79-edb9-4bf8-b179-ed1431ee6e7f.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-radio", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-rating-c5360c9f-1ee0-4126-a996-d62c09304d3d.json b/change/@fluentui-react-rating-c5360c9f-1ee0-4126-a996-d62c09304d3d.json new file mode 100644 index 0000000000000..8b9ce310e0884 --- /dev/null +++ b/change/@fluentui-react-rating-c5360c9f-1ee0-4126-a996-d62c09304d3d.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-rating", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-search-f36078f9-e5fc-4344-b2db-44b941ffa91a.json b/change/@fluentui-react-search-f36078f9-e5fc-4344-b2db-44b941ffa91a.json new file mode 100644 index 0000000000000..4bd6390b37584 --- /dev/null +++ b/change/@fluentui-react-search-f36078f9-e5fc-4344-b2db-44b941ffa91a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-search", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-select-50a85be5-0955-4c16-b6db-527d2bfe6f06.json b/change/@fluentui-react-select-50a85be5-0955-4c16-b6db-527d2bfe6f06.json new file mode 100644 index 0000000000000..388c9f2dda0de --- /dev/null +++ b/change/@fluentui-react-select-50a85be5-0955-4c16-b6db-527d2bfe6f06.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-select", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-shared-contexts-e8cb05d3-69e1-4bc6-bab3-017d3e8a1494.json b/change/@fluentui-react-shared-contexts-e8cb05d3-69e1-4bc6-bab3-017d3e8a1494.json new file mode 100644 index 0000000000000..ec5666b1e2000 --- /dev/null +++ b/change/@fluentui-react-shared-contexts-e8cb05d3-69e1-4bc6-bab3-017d3e8a1494.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-shared-contexts", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-skeleton-b0363764-3e25-49b3-8534-959a0834591a.json b/change/@fluentui-react-skeleton-b0363764-3e25-49b3-8534-959a0834591a.json new file mode 100644 index 0000000000000..1d1ff9be440bf --- /dev/null +++ b/change/@fluentui-react-skeleton-b0363764-3e25-49b3-8534-959a0834591a.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-skeleton", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-slider-c6183a1f-7fc7-42f2-91d0-998387bcfd40.json b/change/@fluentui-react-slider-c6183a1f-7fc7-42f2-91d0-998387bcfd40.json new file mode 100644 index 0000000000000..ba3b37b97aed6 --- /dev/null +++ b/change/@fluentui-react-slider-c6183a1f-7fc7-42f2-91d0-998387bcfd40.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-slider", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-spinbutton-dca37a6e-a46f-4f45-bd1e-92c5860795f8.json b/change/@fluentui-react-spinbutton-dca37a6e-a46f-4f45-bd1e-92c5860795f8.json new file mode 100644 index 0000000000000..dab4ba30155f4 --- /dev/null +++ b/change/@fluentui-react-spinbutton-dca37a6e-a46f-4f45-bd1e-92c5860795f8.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-spinbutton", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-spinner-f5da929d-c544-49d3-a8b9-4e942a0ab991.json b/change/@fluentui-react-spinner-f5da929d-c544-49d3-a8b9-4e942a0ab991.json new file mode 100644 index 0000000000000..a01e5d1bb752b --- /dev/null +++ b/change/@fluentui-react-spinner-f5da929d-c544-49d3-a8b9-4e942a0ab991.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-spinner", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-storybook-addon-22046dc1-5e5f-4957-b654-02a63311aa3b.json b/change/@fluentui-react-storybook-addon-22046dc1-5e5f-4957-b654-02a63311aa3b.json new file mode 100644 index 0000000000000..2c7d8c6d2623a --- /dev/null +++ b/change/@fluentui-react-storybook-addon-22046dc1-5e5f-4957-b654-02a63311aa3b.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-storybook-addon", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-storybook-addon-export-to-sandbox-c0469bed-1761-4a1f-930a-5f4a92d97749.json b/change/@fluentui-react-storybook-addon-export-to-sandbox-c0469bed-1761-4a1f-930a-5f4a92d97749.json new file mode 100644 index 0000000000000..546ebf27d5faa --- /dev/null +++ b/change/@fluentui-react-storybook-addon-export-to-sandbox-c0469bed-1761-4a1f-930a-5f4a92d97749.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-storybook-addon-export-to-sandbox", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-swatch-picker-2beeb0ee-6c84-4cbc-8418-06c3a2b20b7e.json b/change/@fluentui-react-swatch-picker-2beeb0ee-6c84-4cbc-8418-06c3a2b20b7e.json new file mode 100644 index 0000000000000..9e6656cf807f7 --- /dev/null +++ b/change/@fluentui-react-swatch-picker-2beeb0ee-6c84-4cbc-8418-06c3a2b20b7e.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-swatch-picker", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-switch-3dd465b9-7d34-4360-ba4b-78e0953a5f74.json b/change/@fluentui-react-switch-3dd465b9-7d34-4360-ba4b-78e0953a5f74.json new file mode 100644 index 0000000000000..7cbf64071c046 --- /dev/null +++ b/change/@fluentui-react-switch-3dd465b9-7d34-4360-ba4b-78e0953a5f74.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-switch", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-table-2e387656-9d47-4fcf-a040-ded685f88e61.json b/change/@fluentui-react-table-2e387656-9d47-4fcf-a040-ded685f88e61.json new file mode 100644 index 0000000000000..15fe1a871fc86 --- /dev/null +++ b/change/@fluentui-react-table-2e387656-9d47-4fcf-a040-ded685f88e61.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-table", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tabs-cbe17ac0-877b-42ae-8b6c-2ca1c54f0b15.json b/change/@fluentui-react-tabs-cbe17ac0-877b-42ae-8b6c-2ca1c54f0b15.json new file mode 100644 index 0000000000000..9d7b6538c4fc3 --- /dev/null +++ b/change/@fluentui-react-tabs-cbe17ac0-877b-42ae-8b6c-2ca1c54f0b15.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-tabs", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tabster-ebc0290d-74b5-422e-ad4f-cee62c088f36.json b/change/@fluentui-react-tabster-ebc0290d-74b5-422e-ad4f-cee62c088f36.json new file mode 100644 index 0000000000000..f4a47ab98fdbc --- /dev/null +++ b/change/@fluentui-react-tabster-ebc0290d-74b5-422e-ad4f-cee62c088f36.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-tabster", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tag-picker-766c6c8b-75ed-4068-8d69-017c7a2809ef.json b/change/@fluentui-react-tag-picker-766c6c8b-75ed-4068-8d69-017c7a2809ef.json new file mode 100644 index 0000000000000..bc0a5aa8bffb6 --- /dev/null +++ b/change/@fluentui-react-tag-picker-766c6c8b-75ed-4068-8d69-017c7a2809ef.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-tag-picker", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tags-1edffb10-ddbd-4600-8119-079e31643710.json b/change/@fluentui-react-tags-1edffb10-ddbd-4600-8119-079e31643710.json new file mode 100644 index 0000000000000..b734468c13776 --- /dev/null +++ b/change/@fluentui-react-tags-1edffb10-ddbd-4600-8119-079e31643710.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-tags", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-teaching-popover-553c3344-fa74-41f3-96d3-c49ebb45fffa.json b/change/@fluentui-react-teaching-popover-553c3344-fa74-41f3-96d3-c49ebb45fffa.json new file mode 100644 index 0000000000000..e2c2be2a3c872 --- /dev/null +++ b/change/@fluentui-react-teaching-popover-553c3344-fa74-41f3-96d3-c49ebb45fffa.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-teaching-popover", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-text-b5a6e03f-c376-460a-a4e8-2b8c67f99eda.json b/change/@fluentui-react-text-b5a6e03f-c376-460a-a4e8-2b8c67f99eda.json new file mode 100644 index 0000000000000..121c82b75894c --- /dev/null +++ b/change/@fluentui-react-text-b5a6e03f-c376-460a-a4e8-2b8c67f99eda.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-text", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-textarea-c90bdd60-d827-43ab-96b0-d4f519ef0176.json b/change/@fluentui-react-textarea-c90bdd60-d827-43ab-96b0-d4f519ef0176.json new file mode 100644 index 0000000000000..c82d29c4b445f --- /dev/null +++ b/change/@fluentui-react-textarea-c90bdd60-d827-43ab-96b0-d4f519ef0176.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-textarea", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-theme-38b2cfbb-76be-4daa-ba35-588ce1e208bb.json b/change/@fluentui-react-theme-38b2cfbb-76be-4daa-ba35-588ce1e208bb.json new file mode 100644 index 0000000000000..bf08bb9e016e9 --- /dev/null +++ b/change/@fluentui-react-theme-38b2cfbb-76be-4daa-ba35-588ce1e208bb.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-theme", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-theme-sass-6eda362e-202b-44cb-9a94-3c6bbb3fef2e.json b/change/@fluentui-react-theme-sass-6eda362e-202b-44cb-9a94-3c6bbb3fef2e.json new file mode 100644 index 0000000000000..6044bf6327995 --- /dev/null +++ b/change/@fluentui-react-theme-sass-6eda362e-202b-44cb-9a94-3c6bbb3fef2e.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-theme-sass", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-timepicker-compat-191558d0-8705-4856-935a-c47bbffe6f5c.json b/change/@fluentui-react-timepicker-compat-191558d0-8705-4856-935a-c47bbffe6f5c.json new file mode 100644 index 0000000000000..2e5417a71a841 --- /dev/null +++ b/change/@fluentui-react-timepicker-compat-191558d0-8705-4856-935a-c47bbffe6f5c.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-timepicker-compat", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-toast-6ca07605-6ced-470a-a8af-e9025f217c2d.json b/change/@fluentui-react-toast-6ca07605-6ced-470a-a8af-e9025f217c2d.json new file mode 100644 index 0000000000000..904536799a847 --- /dev/null +++ b/change/@fluentui-react-toast-6ca07605-6ced-470a-a8af-e9025f217c2d.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-toast", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-toolbar-a424ed41-dd0d-4072-8a39-4a4f3b5e8dd7.json b/change/@fluentui-react-toolbar-a424ed41-dd0d-4072-8a39-4a4f3b5e8dd7.json new file mode 100644 index 0000000000000..d345e92a3d22f --- /dev/null +++ b/change/@fluentui-react-toolbar-a424ed41-dd0d-4072-8a39-4a4f3b5e8dd7.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-toolbar", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tooltip-20492802-285d-4140-a5eb-2a617752160f.json b/change/@fluentui-react-tooltip-20492802-285d-4140-a5eb-2a617752160f.json new file mode 100644 index 0000000000000..6da8b7144ed15 --- /dev/null +++ b/change/@fluentui-react-tooltip-20492802-285d-4140-a5eb-2a617752160f.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-tooltip", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tree-58c91467-4503-4983-b7bf-b42a20acc81b.json b/change/@fluentui-react-tree-58c91467-4503-4983-b7bf-b42a20acc81b.json new file mode 100644 index 0000000000000..de9d5f12c5380 --- /dev/null +++ b/change/@fluentui-react-tree-58c91467-4503-4983-b7bf-b42a20acc81b.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-tree", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-utilities-01a47879-4d97-4d59-82ba-62879cabef50.json b/change/@fluentui-react-utilities-01a47879-4d97-4d59-82ba-62879cabef50.json new file mode 100644 index 0000000000000..30fbb73d086c9 --- /dev/null +++ b/change/@fluentui-react-utilities-01a47879-4d97-4d59-82ba-62879cabef50.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-utilities", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-virtualizer-bf8007d9-90c1-44e2-9773-8eedddda347d.json b/change/@fluentui-react-virtualizer-bf8007d9-90c1-44e2-9773-8eedddda347d.json new file mode 100644 index 0000000000000..95e005b6c9bf5 --- /dev/null +++ b/change/@fluentui-react-virtualizer-bf8007d9-90c1-44e2-9773-8eedddda347d.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/react-virtualizer", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-tokens-010b8f43-184f-46ed-a093-72532aeec11d.json b/change/@fluentui-tokens-010b8f43-184f-46ed-a093-72532aeec11d.json new file mode 100644 index 0000000000000..22f55eeff4034 --- /dev/null +++ b/change/@fluentui-tokens-010b8f43-184f-46ed-a093-72532aeec11d.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Add `module` export condition so node-targeted bundlers resolve ESM (tree-shaking) while bare Node stays CommonJS; emit fully-specified .js import paths", + "packageName": "@fluentui/tokens", + "email": "martinhochel@microsoft.com", + "dependentChangeType": "none" +} diff --git a/packages/charts/chart-utilities/package.json b/packages/charts/chart-utilities/package.json index 649b12b009530..1b336770f797b 100644 --- a/packages/charts/chart-utilities/package.json +++ b/packages/charts/chart-utilities/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/charts/react-charts/library/.swcrc b/packages/charts/react-charts/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/charts/react-charts/library/.swcrc +++ b/packages/charts/react-charts/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/charts/react-charts/library/package.json b/packages/charts/react-charts/library/package.json index 30a660754cdcf..50c9c089ec5a9 100644 --- a/packages/charts/react-charts/library/package.json +++ b/packages/charts/react-charts/library/package.json @@ -65,7 +65,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/component-selector-preview/library/.swcrc b/packages/react-components/component-selector-preview/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/component-selector-preview/library/.swcrc +++ b/packages/react-components/component-selector-preview/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/component-selector-preview/library/package.json b/packages/react-components/component-selector-preview/library/package.json index d0c7018a35e8a..48255f999b68e 100644 --- a/packages/react-components/component-selector-preview/library/package.json +++ b/packages/react-components/component-selector-preview/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/deprecated/react-alert/.swcrc b/packages/react-components/deprecated/react-alert/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/deprecated/react-alert/.swcrc +++ b/packages/react-components/deprecated/react-alert/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/deprecated/react-alert/package.json b/packages/react-components/deprecated/react-alert/package.json index da0a8c750eefa..b78d0b2a3c2ce 100644 --- a/packages/react-components/deprecated/react-alert/package.json +++ b/packages/react-components/deprecated/react-alert/package.json @@ -38,7 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/deprecated/react-infobutton/.swcrc b/packages/react-components/deprecated/react-infobutton/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/deprecated/react-infobutton/.swcrc +++ b/packages/react-components/deprecated/react-infobutton/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/deprecated/react-infobutton/package.json b/packages/react-components/deprecated/react-infobutton/package.json index bdf554c6c2d97..3de4a90f30666 100644 --- a/packages/react-components/deprecated/react-infobutton/package.json +++ b/packages/react-components/deprecated/react-infobutton/package.json @@ -38,7 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/deprecated/react-virtualizer/.swcrc b/packages/react-components/deprecated/react-virtualizer/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/deprecated/react-virtualizer/.swcrc +++ b/packages/react-components/deprecated/react-virtualizer/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/deprecated/react-virtualizer/package.json b/packages/react-components/deprecated/react-virtualizer/package.json index 59d69e69a6140..7c229a99603a6 100644 --- a/packages/react-components/deprecated/react-virtualizer/package.json +++ b/packages/react-components/deprecated/react-virtualizer/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/global-context/.swcrc b/packages/react-components/global-context/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/global-context/.swcrc +++ b/packages/react-components/global-context/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/global-context/package.json b/packages/react-components/global-context/package.json index dbe08345f80b7..6d24abe367c40 100644 --- a/packages/react-components/global-context/package.json +++ b/packages/react-components/global-context/package.json @@ -32,7 +32,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/keyboard-keys/.swcrc b/packages/react-components/keyboard-keys/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/keyboard-keys/.swcrc +++ b/packages/react-components/keyboard-keys/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/keyboard-keys/package.json b/packages/react-components/keyboard-keys/package.json index fc26425de1c8c..96be4d2e9a9ca 100644 --- a/packages/react-components/keyboard-keys/package.json +++ b/packages/react-components/keyboard-keys/package.json @@ -23,7 +23,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/priority-overflow/.swcrc b/packages/react-components/priority-overflow/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/priority-overflow/.swcrc +++ b/packages/react-components/priority-overflow/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/priority-overflow/package.json b/packages/react-components/priority-overflow/package.json index 26eb4633eab26..7ca1c7de86f36 100644 --- a/packages/react-components/priority-overflow/package.json +++ b/packages/react-components/priority-overflow/package.json @@ -23,7 +23,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-accordion/library/.swcrc b/packages/react-components/react-accordion/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-accordion/library/.swcrc +++ b/packages/react-components/react-accordion/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-accordion/library/package.json b/packages/react-components/react-accordion/library/package.json index 2b90cbee114a9..a6c83172d2c29 100644 --- a/packages/react-components/react-accordion/library/package.json +++ b/packages/react-components/react-accordion/library/package.json @@ -40,7 +40,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-aria/library/.swcrc b/packages/react-components/react-aria/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-aria/library/.swcrc +++ b/packages/react-components/react-aria/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-aria/library/package.json b/packages/react-components/react-aria/library/package.json index 39ddb78bb1147..07c22d3fed06f 100644 --- a/packages/react-components/react-aria/library/package.json +++ b/packages/react-components/react-aria/library/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-avatar/library/.swcrc b/packages/react-components/react-avatar/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-avatar/library/.swcrc +++ b/packages/react-components/react-avatar/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-avatar/library/package.json b/packages/react-components/react-avatar/library/package.json index b1f11b9584e74..709649d1c714e 100644 --- a/packages/react-components/react-avatar/library/package.json +++ b/packages/react-components/react-avatar/library/package.json @@ -43,7 +43,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-badge/library/.swcrc b/packages/react-components/react-badge/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-badge/library/.swcrc +++ b/packages/react-components/react-badge/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-badge/library/package.json b/packages/react-components/react-badge/library/package.json index 14001d897af39..ec752a8cb7913 100644 --- a/packages/react-components/react-badge/library/package.json +++ b/packages/react-components/react-badge/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-breadcrumb/library/.swcrc b/packages/react-components/react-breadcrumb/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-breadcrumb/library/.swcrc +++ b/packages/react-components/react-breadcrumb/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-breadcrumb/library/package.json b/packages/react-components/react-breadcrumb/library/package.json index eb7c38c16796d..67a1102e5ac14 100644 --- a/packages/react-components/react-breadcrumb/library/package.json +++ b/packages/react-components/react-breadcrumb/library/package.json @@ -39,7 +39,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-button/library/.swcrc b/packages/react-components/react-button/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-button/library/.swcrc +++ b/packages/react-components/react-button/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-button/library/package.json b/packages/react-components/react-button/library/package.json index d13504d4d8760..8da04d3bcfeed 100644 --- a/packages/react-components/react-button/library/package.json +++ b/packages/react-components/react-button/library/package.json @@ -38,7 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-calendar-compat/library/.swcrc b/packages/react-components/react-calendar-compat/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-calendar-compat/library/.swcrc +++ b/packages/react-components/react-calendar-compat/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-calendar-compat/library/package.json b/packages/react-components/react-calendar-compat/library/package.json index 9d0c6a39eac4f..f141d5d7ecf74 100644 --- a/packages/react-components/react-calendar-compat/library/package.json +++ b/packages/react-components/react-calendar-compat/library/package.json @@ -33,7 +33,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-card/library/.swcrc b/packages/react-components/react-card/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-card/library/.swcrc +++ b/packages/react-components/react-card/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-card/library/package.json b/packages/react-components/react-card/library/package.json index 51db6f7a1da40..be7e9d31bcff4 100644 --- a/packages/react-components/react-card/library/package.json +++ b/packages/react-components/react-card/library/package.json @@ -37,7 +37,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-carousel/library/.swcrc b/packages/react-components/react-carousel/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-carousel/library/.swcrc +++ b/packages/react-components/react-carousel/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-carousel/library/package.json b/packages/react-components/react-carousel/library/package.json index 0829b5c2a0d1f..e9c80355f3f93 100644 --- a/packages/react-components/react-carousel/library/package.json +++ b/packages/react-components/react-carousel/library/package.json @@ -43,7 +43,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-checkbox/library/.swcrc b/packages/react-components/react-checkbox/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-checkbox/library/.swcrc +++ b/packages/react-components/react-checkbox/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-checkbox/library/package.json b/packages/react-components/react-checkbox/library/package.json index b5508351d3da3..6c4f8673e3d34 100644 --- a/packages/react-components/react-checkbox/library/package.json +++ b/packages/react-components/react-checkbox/library/package.json @@ -38,7 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-color-picker/library/.swcrc b/packages/react-components/react-color-picker/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-color-picker/library/.swcrc +++ b/packages/react-components/react-color-picker/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-color-picker/library/package.json b/packages/react-components/react-color-picker/library/package.json index 786dd58faa9f7..48446adb33e19 100644 --- a/packages/react-components/react-color-picker/library/package.json +++ b/packages/react-components/react-color-picker/library/package.json @@ -37,7 +37,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-colorpicker-compat/.swcrc b/packages/react-components/react-colorpicker-compat/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-colorpicker-compat/.swcrc +++ b/packages/react-components/react-colorpicker-compat/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-colorpicker-compat/package.json b/packages/react-components/react-colorpicker-compat/package.json index 29b9cbd65a1c7..fe7ed7da55ce7 100644 --- a/packages/react-components/react-colorpicker-compat/package.json +++ b/packages/react-components/react-colorpicker-compat/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-combobox/library/.swcrc b/packages/react-components/react-combobox/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-combobox/library/.swcrc +++ b/packages/react-components/react-combobox/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-combobox/library/package.json b/packages/react-components/react-combobox/library/package.json index 4099c8a691e57..96ee9adc4c88c 100644 --- a/packages/react-components/react-combobox/library/package.json +++ b/packages/react-components/react-combobox/library/package.json @@ -42,7 +42,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-components/.swcrc b/packages/react-components/react-components/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-components/.swcrc +++ b/packages/react-components/react-components/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-components/package.json b/packages/react-components/react-components/package.json index 08c46c6f79d24..307804b17e1c9 100644 --- a/packages/react-components/react-components/package.json +++ b/packages/react-components/react-components/package.json @@ -89,14 +89,20 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "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", + "node": { + "module": "./lib/unstable/index.js", + "default": "./lib-commonjs/unstable/index.js" + }, "import": "./lib/unstable/index.js", "require": "./lib-commonjs/unstable/index.js" } diff --git a/packages/react-components/react-context-selector/.swcrc b/packages/react-components/react-context-selector/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-context-selector/.swcrc +++ b/packages/react-components/react-context-selector/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-context-selector/package.json b/packages/react-components/react-context-selector/package.json index ccff3171035bb..991b7a66b953e 100644 --- a/packages/react-components/react-context-selector/package.json +++ b/packages/react-components/react-context-selector/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-datepicker-compat/library/.swcrc b/packages/react-components/react-datepicker-compat/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-datepicker-compat/library/.swcrc +++ b/packages/react-components/react-datepicker-compat/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-datepicker-compat/library/package.json b/packages/react-components/react-datepicker-compat/library/package.json index 1382c1d031f47..fa69db5d4787e 100644 --- a/packages/react-components/react-datepicker-compat/library/package.json +++ b/packages/react-components/react-datepicker-compat/library/package.json @@ -43,7 +43,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-dialog/library/.swcrc b/packages/react-components/react-dialog/library/.swcrc index 7c60535c03e24..a2c577cb1f91e 100644 --- a/packages/react-components/react-dialog/library/.swcrc +++ b/packages/react-components/react-dialog/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "experimental": { "plugins": [["swc-plugin-de-indent-template-literal", {}]] }, diff --git a/packages/react-components/react-dialog/library/package.json b/packages/react-components/react-dialog/library/package.json index f93afcb102872..e7f83234c8563 100644 --- a/packages/react-components/react-dialog/library/package.json +++ b/packages/react-components/react-dialog/library/package.json @@ -42,7 +42,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-divider/library/.swcrc b/packages/react-components/react-divider/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-divider/library/.swcrc +++ b/packages/react-components/react-divider/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-divider/library/package.json b/packages/react-components/react-divider/library/package.json index ec0ea7b700ea4..6d1de8daae8eb 100644 --- a/packages/react-components/react-divider/library/package.json +++ b/packages/react-components/react-divider/library/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-drawer/library/.swcrc b/packages/react-components/react-drawer/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-drawer/library/.swcrc +++ b/packages/react-components/react-drawer/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-drawer/library/package.json b/packages/react-components/react-drawer/library/package.json index d09483537ee77..78faf970b0a11 100644 --- a/packages/react-components/react-drawer/library/package.json +++ b/packages/react-components/react-drawer/library/package.json @@ -39,7 +39,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-field/library/.swcrc b/packages/react-components/react-field/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-field/library/.swcrc +++ b/packages/react-components/react-field/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-field/library/package.json b/packages/react-components/react-field/library/package.json index a091a8a6ff8ca..df435e875e231 100644 --- a/packages/react-components/react-field/library/package.json +++ b/packages/react-components/react-field/library/package.json @@ -37,7 +37,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-headless-components-preview/library/.swcrc b/packages/react-components/react-headless-components-preview/library/.swcrc index 6ae360015ce57..67f33cb59414a 100644 --- a/packages/react-components/react-headless-components-preview/library/.swcrc +++ b/packages/react-components/react-headless-components-preview/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-headless-components-preview/library/package.json b/packages/react-components/react-headless-components-preview/library/package.json index 54c7d57430ef4..0a0dfdc5e1aa3 100644 --- a/packages/react-components/react-headless-components-preview/library/package.json +++ b/packages/react-components/react-headless-components-preview/library/package.json @@ -76,277 +76,415 @@ "exports": { "./accordion": { "types": "./dist/accordion.d.ts", - "node": "./lib-commonjs/accordion.js", + "node": { + "module": "./lib/accordion.js", + "default": "./lib-commonjs/accordion.js" + }, "import": "./lib/accordion.js", "require": "./lib-commonjs/accordion.js" }, "./avatar": { "types": "./dist/avatar.d.ts", - "node": "./lib-commonjs/avatar.js", + "node": { + "module": "./lib/avatar.js", + "default": "./lib-commonjs/avatar.js" + }, "import": "./lib/avatar.js", "require": "./lib-commonjs/avatar.js" }, "./badge": { "types": "./dist/badge.d.ts", - "node": "./lib-commonjs/badge.js", + "node": { + "module": "./lib/badge.js", + "default": "./lib-commonjs/badge.js" + }, "import": "./lib/badge.js", "require": "./lib-commonjs/badge.js" }, "./breadcrumb": { "types": "./dist/breadcrumb.d.ts", - "node": "./lib-commonjs/breadcrumb.js", + "node": { + "module": "./lib/breadcrumb.js", + "default": "./lib-commonjs/breadcrumb.js" + }, "import": "./lib/breadcrumb.js", "require": "./lib-commonjs/breadcrumb.js" }, "./button": { "types": "./dist/button.d.ts", - "node": "./lib-commonjs/button.js", + "node": { + "module": "./lib/button.js", + "default": "./lib-commonjs/button.js" + }, "import": "./lib/button.js", "require": "./lib-commonjs/button.js" }, "./card": { "types": "./dist/card.d.ts", - "node": "./lib-commonjs/card.js", + "node": { + "module": "./lib/card.js", + "default": "./lib-commonjs/card.js" + }, "import": "./lib/card.js", "require": "./lib-commonjs/card.js" }, "./checkbox": { "types": "./dist/checkbox.d.ts", - "node": "./lib-commonjs/checkbox.js", + "node": { + "module": "./lib/checkbox.js", + "default": "./lib-commonjs/checkbox.js" + }, "import": "./lib/checkbox.js", "require": "./lib-commonjs/checkbox.js" }, "./combobox": { "types": "./dist/combobox.d.ts", - "node": "./lib-commonjs/combobox.js", + "node": { + "module": "./lib/combobox.js", + "default": "./lib-commonjs/combobox.js" + }, "import": "./lib/combobox.js", "require": "./lib-commonjs/combobox.js" }, "./dialog": { "types": "./dist/dialog.d.ts", - "node": "./lib-commonjs/dialog.js", + "node": { + "module": "./lib/dialog.js", + "default": "./lib-commonjs/dialog.js" + }, "import": "./lib/dialog.js", "require": "./lib-commonjs/dialog.js" }, "./divider": { "types": "./dist/divider.d.ts", - "node": "./lib-commonjs/divider.js", + "node": { + "module": "./lib/divider.js", + "default": "./lib-commonjs/divider.js" + }, "import": "./lib/divider.js", "require": "./lib-commonjs/divider.js" }, "./drawer": { "types": "./dist/drawer.d.ts", - "node": "./lib-commonjs/drawer.js", + "node": { + "module": "./lib/drawer.js", + "default": "./lib-commonjs/drawer.js" + }, "import": "./lib/drawer.js", "require": "./lib-commonjs/drawer.js" }, "./dropdown": { "types": "./dist/dropdown.d.ts", - "node": "./lib-commonjs/dropdown.js", + "node": { + "module": "./lib/dropdown.js", + "default": "./lib-commonjs/dropdown.js" + }, "import": "./lib/dropdown.js", "require": "./lib-commonjs/dropdown.js" }, "./field": { "types": "./dist/field.d.ts", - "node": "./lib-commonjs/field.js", + "node": { + "module": "./lib/field.js", + "default": "./lib-commonjs/field.js" + }, "import": "./lib/field.js", "require": "./lib-commonjs/field.js" }, "./image": { "types": "./dist/image.d.ts", - "node": "./lib-commonjs/image.js", + "node": { + "module": "./lib/image.js", + "default": "./lib-commonjs/image.js" + }, "import": "./lib/image.js", "require": "./lib-commonjs/image.js" }, "./info-label": { "types": "./dist/info-label.d.ts", - "node": "./lib-commonjs/info-label.js", + "node": { + "module": "./lib/info-label.js", + "default": "./lib-commonjs/info-label.js" + }, "import": "./lib/info-label.js", "require": "./lib-commonjs/info-label.js" }, "./input": { "types": "./dist/input.d.ts", - "node": "./lib-commonjs/input.js", + "node": { + "module": "./lib/input.js", + "default": "./lib-commonjs/input.js" + }, "import": "./lib/input.js", "require": "./lib-commonjs/input.js" }, "./interaction-tag": { "types": "./dist/interaction-tag.d.ts", - "node": "./lib-commonjs/interaction-tag.js", + "node": { + "module": "./lib/interaction-tag.js", + "default": "./lib-commonjs/interaction-tag.js" + }, "import": "./lib/interaction-tag.js", "require": "./lib-commonjs/interaction-tag.js" }, "./label": { "types": "./dist/label.d.ts", - "node": "./lib-commonjs/label.js", + "node": { + "module": "./lib/label.js", + "default": "./lib-commonjs/label.js" + }, "import": "./lib/label.js", "require": "./lib-commonjs/label.js" }, "./link": { "types": "./dist/link.d.ts", - "node": "./lib-commonjs/link.js", + "node": { + "module": "./lib/link.js", + "default": "./lib-commonjs/link.js" + }, "import": "./lib/link.js", "require": "./lib-commonjs/link.js" }, "./menu": { "types": "./dist/menu.d.ts", - "node": "./lib-commonjs/menu.js", + "node": { + "module": "./lib/menu.js", + "default": "./lib-commonjs/menu.js" + }, "import": "./lib/menu.js", "require": "./lib-commonjs/menu.js" }, "./message-bar": { "types": "./dist/message-bar.d.ts", - "node": "./lib-commonjs/message-bar.js", + "node": { + "module": "./lib/message-bar.js", + "default": "./lib-commonjs/message-bar.js" + }, "import": "./lib/message-bar.js", "require": "./lib-commonjs/message-bar.js" }, "./nav": { "types": "./dist/nav.d.ts", - "node": "./lib-commonjs/nav.js", + "node": { + "module": "./lib/nav.js", + "default": "./lib-commonjs/nav.js" + }, "import": "./lib/nav.js", "require": "./lib-commonjs/nav.js" }, "./persona": { "types": "./dist/persona.d.ts", - "node": "./lib-commonjs/persona.js", + "node": { + "module": "./lib/persona.js", + "default": "./lib-commonjs/persona.js" + }, "import": "./lib/persona.js", "require": "./lib-commonjs/persona.js" }, "./popover": { "types": "./dist/popover.d.ts", - "node": "./lib-commonjs/popover.js", + "node": { + "module": "./lib/popover.js", + "default": "./lib-commonjs/popover.js" + }, "import": "./lib/popover.js", "require": "./lib-commonjs/popover.js" }, "./positioning": { "types": "./dist/positioning.d.ts", - "node": "./lib-commonjs/positioning.js", + "node": { + "module": "./lib/positioning.js", + "default": "./lib-commonjs/positioning.js" + }, "import": "./lib/positioning.js", "require": "./lib-commonjs/positioning.js" }, "./progress-bar": { "types": "./dist/progress-bar.d.ts", - "node": "./lib-commonjs/progress-bar.js", + "node": { + "module": "./lib/progress-bar.js", + "default": "./lib-commonjs/progress-bar.js" + }, "import": "./lib/progress-bar.js", "require": "./lib-commonjs/progress-bar.js" }, "./provider": { "types": "./dist/provider.d.ts", - "node": "./lib-commonjs/provider.js", + "node": { + "module": "./lib/provider.js", + "default": "./lib-commonjs/provider.js" + }, "import": "./lib/provider.js", "require": "./lib-commonjs/provider.js" }, "./radio-group": { "types": "./dist/radio-group.d.ts", - "node": "./lib-commonjs/radio-group.js", + "node": { + "module": "./lib/radio-group.js", + "default": "./lib-commonjs/radio-group.js" + }, "import": "./lib/radio-group.js", "require": "./lib-commonjs/radio-group.js" }, "./rating": { "types": "./dist/rating.d.ts", - "node": "./lib-commonjs/rating.js", + "node": { + "module": "./lib/rating.js", + "default": "./lib-commonjs/rating.js" + }, "import": "./lib/rating.js", "require": "./lib-commonjs/rating.js" }, "./rating-display": { "types": "./dist/rating-display.d.ts", - "node": "./lib-commonjs/rating-display.js", + "node": { + "module": "./lib/rating-display.js", + "default": "./lib-commonjs/rating-display.js" + }, "import": "./lib/rating-display.js", "require": "./lib-commonjs/rating-display.js" }, "./search-box": { "types": "./dist/search-box.d.ts", - "node": "./lib-commonjs/search-box.js", + "node": { + "module": "./lib/search-box.js", + "default": "./lib-commonjs/search-box.js" + }, "import": "./lib/search-box.js", "require": "./lib-commonjs/search-box.js" }, "./select": { "types": "./dist/select.d.ts", - "node": "./lib-commonjs/select.js", + "node": { + "module": "./lib/select.js", + "default": "./lib-commonjs/select.js" + }, "import": "./lib/select.js", "require": "./lib-commonjs/select.js" }, "./skeleton": { "types": "./dist/skeleton.d.ts", - "node": "./lib-commonjs/skeleton.js", + "node": { + "module": "./lib/skeleton.js", + "default": "./lib-commonjs/skeleton.js" + }, "import": "./lib/skeleton.js", "require": "./lib-commonjs/skeleton.js" }, "./slider": { "types": "./dist/slider.d.ts", - "node": "./lib-commonjs/slider.js", + "node": { + "module": "./lib/slider.js", + "default": "./lib-commonjs/slider.js" + }, "import": "./lib/slider.js", "require": "./lib-commonjs/slider.js" }, "./spin-button": { "types": "./dist/spin-button.d.ts", - "node": "./lib-commonjs/spin-button.js", + "node": { + "module": "./lib/spin-button.js", + "default": "./lib-commonjs/spin-button.js" + }, "import": "./lib/spin-button.js", "require": "./lib-commonjs/spin-button.js" }, "./spinner": { "types": "./dist/spinner.d.ts", - "node": "./lib-commonjs/spinner.js", + "node": { + "module": "./lib/spinner.js", + "default": "./lib-commonjs/spinner.js" + }, "import": "./lib/spinner.js", "require": "./lib-commonjs/spinner.js" }, "./switch": { "types": "./dist/switch.d.ts", - "node": "./lib-commonjs/switch.js", + "node": { + "module": "./lib/switch.js", + "default": "./lib-commonjs/switch.js" + }, "import": "./lib/switch.js", "require": "./lib-commonjs/switch.js" }, "./tab-list": { "types": "./dist/tab-list.d.ts", - "node": "./lib-commonjs/tab-list.js", + "node": { + "module": "./lib/tab-list.js", + "default": "./lib-commonjs/tab-list.js" + }, "import": "./lib/tab-list.js", "require": "./lib-commonjs/tab-list.js" }, "./tag": { "types": "./dist/tag.d.ts", - "node": "./lib-commonjs/tag.js", + "node": { + "module": "./lib/tag.js", + "default": "./lib-commonjs/tag.js" + }, "import": "./lib/tag.js", "require": "./lib-commonjs/tag.js" }, "./tag-group": { "types": "./dist/tag-group.d.ts", - "node": "./lib-commonjs/tag-group.js", + "node": { + "module": "./lib/tag-group.js", + "default": "./lib-commonjs/tag-group.js" + }, "import": "./lib/tag-group.js", "require": "./lib-commonjs/tag-group.js" }, "./teaching-popover": { "types": "./dist/teaching-popover.d.ts", - "node": "./lib-commonjs/teaching-popover.js", + "node": { + "module": "./lib/teaching-popover.js", + "default": "./lib-commonjs/teaching-popover.js" + }, "import": "./lib/teaching-popover.js", "require": "./lib-commonjs/teaching-popover.js" }, "./textarea": { "types": "./dist/textarea.d.ts", - "node": "./lib-commonjs/textarea.js", + "node": { + "module": "./lib/textarea.js", + "default": "./lib-commonjs/textarea.js" + }, "import": "./lib/textarea.js", "require": "./lib-commonjs/textarea.js" }, "./toast": { "types": "./dist/toast.d.ts", - "node": "./lib-commonjs/toast.js", + "node": { + "module": "./lib/toast.js", + "default": "./lib-commonjs/toast.js" + }, "import": "./lib/toast.js", "require": "./lib-commonjs/toast.js" }, "./toggle-button": { "types": "./dist/toggle-button.d.ts", - "node": "./lib-commonjs/toggle-button.js", + "node": { + "module": "./lib/toggle-button.js", + "default": "./lib-commonjs/toggle-button.js" + }, "import": "./lib/toggle-button.js", "require": "./lib-commonjs/toggle-button.js" }, "./toolbar": { "types": "./dist/toolbar.d.ts", - "node": "./lib-commonjs/toolbar.js", + "node": { + "module": "./lib/toolbar.js", + "default": "./lib-commonjs/toolbar.js" + }, "import": "./lib/toolbar.js", "require": "./lib-commonjs/toolbar.js" }, "./tooltip": { "types": "./dist/tooltip.d.ts", - "node": "./lib-commonjs/tooltip.js", + "node": { + "module": "./lib/tooltip.js", + "default": "./lib-commonjs/tooltip.js" + }, "import": "./lib/tooltip.js", "require": "./lib-commonjs/tooltip.js" }, diff --git a/packages/react-components/react-icons-compat/library/.swcrc b/packages/react-components/react-icons-compat/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-icons-compat/library/.swcrc +++ b/packages/react-components/react-icons-compat/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-icons-compat/library/package.json b/packages/react-components/react-icons-compat/library/package.json index e2caa588e8fce..8f8924de2bae4 100644 --- a/packages/react-components/react-icons-compat/library/package.json +++ b/packages/react-components/react-icons-compat/library/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-image/library/.swcrc b/packages/react-components/react-image/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-image/library/.swcrc +++ b/packages/react-components/react-image/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-image/library/package.json b/packages/react-components/react-image/library/package.json index b51c320b9751b..b7510ff750a81 100644 --- a/packages/react-components/react-image/library/package.json +++ b/packages/react-components/react-image/library/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-infolabel/library/.swcrc b/packages/react-components/react-infolabel/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-infolabel/library/.swcrc +++ b/packages/react-components/react-infolabel/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-infolabel/library/package.json b/packages/react-components/react-infolabel/library/package.json index 62b41cf09157d..abb7eba4dd2e9 100644 --- a/packages/react-components/react-infolabel/library/package.json +++ b/packages/react-components/react-infolabel/library/package.json @@ -32,7 +32,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-input/library/.swcrc b/packages/react-components/react-input/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-input/library/.swcrc +++ b/packages/react-components/react-input/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-input/library/package.json b/packages/react-components/react-input/library/package.json index 3ba46e0c66db2..5c12fa4c0f5ff 100644 --- a/packages/react-components/react-input/library/package.json +++ b/packages/react-components/react-input/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-jsx-runtime/.swcrc b/packages/react-components/react-jsx-runtime/.swcrc index 7c60535c03e24..a2c577cb1f91e 100644 --- a/packages/react-components/react-jsx-runtime/.swcrc +++ b/packages/react-components/react-jsx-runtime/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "experimental": { "plugins": [["swc-plugin-de-indent-template-literal", {}]] }, diff --git a/packages/react-components/react-jsx-runtime/package.json b/packages/react-components/react-jsx-runtime/package.json index 5faf9abc552e3..ac47695252111 100644 --- a/packages/react-components/react-jsx-runtime/package.json +++ b/packages/react-components/react-jsx-runtime/package.json @@ -28,19 +28,28 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, "./jsx-dev-runtime": { "types": "./dist/jsx-dev-runtime.d.ts", - "node": "./lib-commonjs/jsx-dev-runtime.js", + "node": { + "module": "./lib/jsx-dev-runtime.js", + "default": "./lib-commonjs/jsx-dev-runtime.js" + }, "import": "./lib/jsx-dev-runtime.js", "require": "./lib-commonjs/jsx-dev-runtime.js" }, "./jsx-runtime": { "types": "./dist/jsx-runtime.d.ts", - "node": "./lib-commonjs/jsx-runtime.js", + "node": { + "module": "./lib/jsx-runtime.js", + "default": "./lib-commonjs/jsx-runtime.js" + }, "import": "./lib/jsx-runtime.js", "require": "./lib-commonjs/jsx-runtime.js" }, diff --git a/packages/react-components/react-label/library/.swcrc b/packages/react-components/react-label/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-label/library/.swcrc +++ b/packages/react-components/react-label/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-label/library/package.json b/packages/react-components/react-label/library/package.json index 43f3780c93102..a5bdfa6fce4bd 100644 --- a/packages/react-components/react-label/library/package.json +++ b/packages/react-components/react-label/library/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-link/library/.swcrc b/packages/react-components/react-link/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-link/library/.swcrc +++ b/packages/react-components/react-link/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-link/library/package.json b/packages/react-components/react-link/library/package.json index 13beea054e7b9..d95b039fa527f 100644 --- a/packages/react-components/react-link/library/package.json +++ b/packages/react-components/react-link/library/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-list/library/.swcrc b/packages/react-components/react-list/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-list/library/.swcrc +++ b/packages/react-components/react-list/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-list/library/package.json b/packages/react-components/react-list/library/package.json index 080a80e809c71..a488d7201e68e 100644 --- a/packages/react-components/react-list/library/package.json +++ b/packages/react-components/react-list/library/package.json @@ -38,7 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-menu-grid-preview/library/.swcrc b/packages/react-components/react-menu-grid-preview/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-menu-grid-preview/library/.swcrc +++ b/packages/react-components/react-menu-grid-preview/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-menu-grid-preview/library/package.json b/packages/react-components/react-menu-grid-preview/library/package.json index 5ddc3fec4c09e..09b0cc9425ebd 100644 --- a/packages/react-components/react-menu-grid-preview/library/package.json +++ b/packages/react-components/react-menu-grid-preview/library/package.json @@ -39,7 +39,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-menu/library/.swcrc b/packages/react-components/react-menu/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-menu/library/.swcrc +++ b/packages/react-components/react-menu/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-menu/library/package.json b/packages/react-components/react-menu/library/package.json index 26ff1469b66cc..49456133f6564 100644 --- a/packages/react-components/react-menu/library/package.json +++ b/packages/react-components/react-menu/library/package.json @@ -43,7 +43,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-message-bar/library/.swcrc b/packages/react-components/react-message-bar/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-message-bar/library/.swcrc +++ b/packages/react-components/react-message-bar/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-message-bar/library/package.json b/packages/react-components/react-message-bar/library/package.json index 311594e6863f1..112921cd07584 100644 --- a/packages/react-components/react-message-bar/library/package.json +++ b/packages/react-components/react-message-bar/library/package.json @@ -33,7 +33,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-migration-v0-v9/library/.swcrc b/packages/react-components/react-migration-v0-v9/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-migration-v0-v9/library/.swcrc +++ b/packages/react-components/react-migration-v0-v9/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-migration-v0-v9/library/package.json b/packages/react-components/react-migration-v0-v9/library/package.json index 25dc166e7190c..0800669b25500 100644 --- a/packages/react-components/react-migration-v0-v9/library/package.json +++ b/packages/react-components/react-migration-v0-v9/library/package.json @@ -40,7 +40,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-migration-v8-v9/library/.swcrc b/packages/react-components/react-migration-v8-v9/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-migration-v8-v9/library/.swcrc +++ b/packages/react-components/react-migration-v8-v9/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-migration-v8-v9/library/package.json b/packages/react-components/react-migration-v8-v9/library/package.json index fa116a8ae3b24..48f9d63529045 100644 --- a/packages/react-components/react-migration-v8-v9/library/package.json +++ b/packages/react-components/react-migration-v8-v9/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-motion-components-preview/library/.swcrc b/packages/react-components/react-motion-components-preview/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-motion-components-preview/library/.swcrc +++ b/packages/react-components/react-motion-components-preview/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-motion-components-preview/library/package.json b/packages/react-components/react-motion-components-preview/library/package.json index d6f43c2483763..22a0fd3c6c424 100644 --- a/packages/react-components/react-motion-components-preview/library/package.json +++ b/packages/react-components/react-motion-components-preview/library/package.json @@ -31,7 +31,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-motion/library/.swcrc b/packages/react-components/react-motion/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-motion/library/.swcrc +++ b/packages/react-components/react-motion/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-motion/library/package.json b/packages/react-components/react-motion/library/package.json index 3aef2a73721d5..47a7111132800 100644 --- a/packages/react-components/react-motion/library/package.json +++ b/packages/react-components/react-motion/library/package.json @@ -31,7 +31,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-nav/library/.swcrc b/packages/react-components/react-nav/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-nav/library/.swcrc +++ b/packages/react-components/react-nav/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-nav/library/package.json b/packages/react-components/react-nav/library/package.json index e83c23b4dc459..c284dddc46c39 100644 --- a/packages/react-components/react-nav/library/package.json +++ b/packages/react-components/react-nav/library/package.json @@ -38,7 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-overflow/library/.swcrc b/packages/react-components/react-overflow/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-overflow/library/.swcrc +++ b/packages/react-components/react-overflow/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-overflow/library/package.json b/packages/react-components/react-overflow/library/package.json index 8306f8188439e..7a0ca537852ae 100644 --- a/packages/react-components/react-overflow/library/package.json +++ b/packages/react-components/react-overflow/library/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-persona/library/.swcrc b/packages/react-components/react-persona/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-persona/library/.swcrc +++ b/packages/react-components/react-persona/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-persona/library/package.json b/packages/react-components/react-persona/library/package.json index cc35a121bf2e9..7e69a42afc3aa 100644 --- a/packages/react-components/react-persona/library/package.json +++ b/packages/react-components/react-persona/library/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-popover/library/.swcrc b/packages/react-components/react-popover/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-popover/library/.swcrc +++ b/packages/react-components/react-popover/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-popover/library/package.json b/packages/react-components/react-popover/library/package.json index 6e814f9d9689f..ce7d79f7f308a 100644 --- a/packages/react-components/react-popover/library/package.json +++ b/packages/react-components/react-popover/library/package.json @@ -42,7 +42,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-portal-compat-context/.swcrc b/packages/react-components/react-portal-compat-context/.swcrc index d63668e8c987e..6fc76ab5e07eb 100644 --- a/packages/react-components/react-portal-compat-context/.swcrc +++ b/packages/react-components/react-portal-compat-context/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-portal-compat-context/package.json b/packages/react-components/react-portal-compat-context/package.json index b730485656037..5197f4a035b99 100644 --- a/packages/react-components/react-portal-compat-context/package.json +++ b/packages/react-components/react-portal-compat-context/package.json @@ -27,7 +27,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-portal-compat/.swcrc b/packages/react-components/react-portal-compat/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-portal-compat/.swcrc +++ b/packages/react-components/react-portal-compat/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-portal-compat/package.json b/packages/react-components/react-portal-compat/package.json index d335fe0f644d8..c4ba49212878b 100644 --- a/packages/react-components/react-portal-compat/package.json +++ b/packages/react-components/react-portal-compat/package.json @@ -30,7 +30,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-portal/library/.swcrc b/packages/react-components/react-portal/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-portal/library/.swcrc +++ b/packages/react-components/react-portal/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-portal/library/package.json b/packages/react-components/react-portal/library/package.json index 9b6a5cb9faa26..cccdbc719b378 100644 --- a/packages/react-components/react-portal/library/package.json +++ b/packages/react-components/react-portal/library/package.json @@ -33,7 +33,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-positioning/library/.swcrc b/packages/react-components/react-positioning/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-positioning/library/.swcrc +++ b/packages/react-components/react-positioning/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-positioning/library/package.json b/packages/react-components/react-positioning/library/package.json index 9a47caae038ef..84a55bd55c064 100644 --- a/packages/react-components/react-positioning/library/package.json +++ b/packages/react-components/react-positioning/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-progress/library/.swcrc b/packages/react-components/react-progress/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-progress/library/.swcrc +++ b/packages/react-components/react-progress/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-progress/library/package.json b/packages/react-components/react-progress/library/package.json index e73188e63e891..ce8ba6e1e823c 100644 --- a/packages/react-components/react-progress/library/package.json +++ b/packages/react-components/react-progress/library/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-provider/library/.swcrc b/packages/react-components/react-provider/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-provider/library/.swcrc +++ b/packages/react-components/react-provider/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-provider/library/package.json b/packages/react-components/react-provider/library/package.json index a87cdfa1f1465..7dc1220a7aa25 100644 --- a/packages/react-components/react-provider/library/package.json +++ b/packages/react-components/react-provider/library/package.json @@ -37,7 +37,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-radio/library/.swcrc b/packages/react-components/react-radio/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-radio/library/.swcrc +++ b/packages/react-components/react-radio/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-radio/library/package.json b/packages/react-components/react-radio/library/package.json index 6f1a033283460..119b9861fe5dc 100644 --- a/packages/react-components/react-radio/library/package.json +++ b/packages/react-components/react-radio/library/package.json @@ -37,7 +37,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-rating/library/.swcrc b/packages/react-components/react-rating/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-rating/library/.swcrc +++ b/packages/react-components/react-rating/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-rating/library/package.json b/packages/react-components/react-rating/library/package.json index 6340d5dcfc264..d7f260cce59a6 100644 --- a/packages/react-components/react-rating/library/package.json +++ b/packages/react-components/react-rating/library/package.json @@ -30,7 +30,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-search/library/.swcrc b/packages/react-components/react-search/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-search/library/.swcrc +++ b/packages/react-components/react-search/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-search/library/package.json b/packages/react-components/react-search/library/package.json index 488f584d4321f..e61bce62c5f3a 100644 --- a/packages/react-components/react-search/library/package.json +++ b/packages/react-components/react-search/library/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-select/library/.swcrc b/packages/react-components/react-select/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-select/library/.swcrc +++ b/packages/react-components/react-select/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-select/library/package.json b/packages/react-components/react-select/library/package.json index d31f2053be403..75a8b0c3aa9f4 100644 --- a/packages/react-components/react-select/library/package.json +++ b/packages/react-components/react-select/library/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-shared-contexts/library/.swcrc b/packages/react-components/react-shared-contexts/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-shared-contexts/library/.swcrc +++ b/packages/react-components/react-shared-contexts/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-shared-contexts/library/package.json b/packages/react-components/react-shared-contexts/library/package.json index 818576247a641..24ae219dcb485 100644 --- a/packages/react-components/react-shared-contexts/library/package.json +++ b/packages/react-components/react-shared-contexts/library/package.json @@ -28,7 +28,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-skeleton/library/.swcrc b/packages/react-components/react-skeleton/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-skeleton/library/.swcrc +++ b/packages/react-components/react-skeleton/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-skeleton/library/package.json b/packages/react-components/react-skeleton/library/package.json index aa8e7000796ce..c6b875eccffea 100644 --- a/packages/react-components/react-skeleton/library/package.json +++ b/packages/react-components/react-skeleton/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-slider/library/.swcrc b/packages/react-components/react-slider/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-slider/library/.swcrc +++ b/packages/react-components/react-slider/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-slider/library/package.json b/packages/react-components/react-slider/library/package.json index 53d949ae3327f..e70c17b41fbf2 100644 --- a/packages/react-components/react-slider/library/package.json +++ b/packages/react-components/react-slider/library/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-spinbutton/library/.swcrc b/packages/react-components/react-spinbutton/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-spinbutton/library/.swcrc +++ b/packages/react-components/react-spinbutton/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-spinbutton/library/package.json b/packages/react-components/react-spinbutton/library/package.json index 1a3be5680b3a9..2b204ba9989d0 100644 --- a/packages/react-components/react-spinbutton/library/package.json +++ b/packages/react-components/react-spinbutton/library/package.json @@ -37,7 +37,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-spinner/library/.swcrc b/packages/react-components/react-spinner/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-spinner/library/.swcrc +++ b/packages/react-components/react-spinner/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-spinner/library/package.json b/packages/react-components/react-spinner/library/package.json index 2686890c7758d..eea4234b024a4 100644 --- a/packages/react-components/react-spinner/library/package.json +++ b/packages/react-components/react-spinner/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-storybook-addon-export-to-sandbox/.swcrc b/packages/react-components/react-storybook-addon-export-to-sandbox/.swcrc index 60a8beae82300..ec92c5ba665f6 100644 --- a/packages/react-components/react-storybook-addon-export-to-sandbox/.swcrc +++ b/packages/react-components/react-storybook-addon-export-to-sandbox/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-storybook-addon-export-to-sandbox/package.json b/packages/react-components/react-storybook-addon-export-to-sandbox/package.json index e0d2931b76479..1882f97d9c99e 100644 --- a/packages/react-components/react-storybook-addon-export-to-sandbox/package.json +++ b/packages/react-components/react-storybook-addon-export-to-sandbox/package.json @@ -29,8 +29,11 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", - "node": "./lib-commonjs/index.js", "require": "./lib-commonjs/index.js" }, "./preset": "./preset.js", diff --git a/packages/react-components/react-storybook-addon/.swcrc b/packages/react-components/react-storybook-addon/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-storybook-addon/.swcrc +++ b/packages/react-components/react-storybook-addon/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-storybook-addon/package.json b/packages/react-components/react-storybook-addon/package.json index 4c61dbe48bdf2..4350b533fe756 100644 --- a/packages/react-components/react-storybook-addon/package.json +++ b/packages/react-components/react-storybook-addon/package.json @@ -47,7 +47,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-swatch-picker/library/.swcrc b/packages/react-components/react-swatch-picker/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-swatch-picker/library/.swcrc +++ b/packages/react-components/react-swatch-picker/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-swatch-picker/library/package.json b/packages/react-components/react-swatch-picker/library/package.json index af4fb8cd7ba58..0bd3c750b84d7 100644 --- a/packages/react-components/react-swatch-picker/library/package.json +++ b/packages/react-components/react-swatch-picker/library/package.json @@ -32,7 +32,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-switch/library/.swcrc b/packages/react-components/react-switch/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-switch/library/.swcrc +++ b/packages/react-components/react-switch/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-switch/library/package.json b/packages/react-components/react-switch/library/package.json index a08296a5ba749..3d58f8ddd2887 100644 --- a/packages/react-components/react-switch/library/package.json +++ b/packages/react-components/react-switch/library/package.json @@ -38,7 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-table/library/.swcrc b/packages/react-components/react-table/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-table/library/.swcrc +++ b/packages/react-components/react-table/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-table/library/package.json b/packages/react-components/react-table/library/package.json index 885b4b12339fd..32fcdbf83d9a8 100644 --- a/packages/react-components/react-table/library/package.json +++ b/packages/react-components/react-table/library/package.json @@ -41,7 +41,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-tabs/library/.swcrc b/packages/react-components/react-tabs/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-tabs/library/.swcrc +++ b/packages/react-components/react-tabs/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-tabs/library/package.json b/packages/react-components/react-tabs/library/package.json index 0b58c876b0747..70fcea7ed9371 100644 --- a/packages/react-components/react-tabs/library/package.json +++ b/packages/react-components/react-tabs/library/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-tabster/.swcrc b/packages/react-components/react-tabster/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-tabster/.swcrc +++ b/packages/react-components/react-tabster/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-tabster/package.json b/packages/react-components/react-tabster/package.json index 3f33d04c12a2b..0cc802e7ee6e9 100644 --- a/packages/react-components/react-tabster/package.json +++ b/packages/react-components/react-tabster/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-tag-picker/library/.swcrc b/packages/react-components/react-tag-picker/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-tag-picker/library/.swcrc +++ b/packages/react-components/react-tag-picker/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-tag-picker/library/package.json b/packages/react-components/react-tag-picker/library/package.json index 4b8e9e45864b8..e1678404f7c3f 100644 --- a/packages/react-components/react-tag-picker/library/package.json +++ b/packages/react-components/react-tag-picker/library/package.json @@ -44,7 +44,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-tags/library/.swcrc b/packages/react-components/react-tags/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-tags/library/.swcrc +++ b/packages/react-components/react-tags/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-tags/library/package.json b/packages/react-components/react-tags/library/package.json index 3ef7f024ad0f8..3eee000c9f89d 100644 --- a/packages/react-components/react-tags/library/package.json +++ b/packages/react-components/react-tags/library/package.json @@ -39,7 +39,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-teaching-popover/library/.swcrc b/packages/react-components/react-teaching-popover/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-teaching-popover/library/.swcrc +++ b/packages/react-components/react-teaching-popover/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-teaching-popover/library/package.json b/packages/react-components/react-teaching-popover/library/package.json index f092215fc17cd..6e5050c125309 100644 --- a/packages/react-components/react-teaching-popover/library/package.json +++ b/packages/react-components/react-teaching-popover/library/package.json @@ -41,7 +41,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-text/library/.swcrc b/packages/react-components/react-text/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-text/library/.swcrc +++ b/packages/react-components/react-text/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-text/library/package.json b/packages/react-components/react-text/library/package.json index 38d7ae6e845ab..9138aae4eaf18 100644 --- a/packages/react-components/react-text/library/package.json +++ b/packages/react-components/react-text/library/package.json @@ -34,7 +34,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-textarea/library/.swcrc b/packages/react-components/react-textarea/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-textarea/library/.swcrc +++ b/packages/react-components/react-textarea/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-textarea/library/package.json b/packages/react-components/react-textarea/library/package.json index 8c259474b8aad..0b0dc4b552e70 100644 --- a/packages/react-components/react-textarea/library/package.json +++ b/packages/react-components/react-textarea/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-theme-sass/.swcrc b/packages/react-components/react-theme-sass/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-theme-sass/.swcrc +++ b/packages/react-components/react-theme-sass/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-theme-sass/package.json b/packages/react-components/react-theme-sass/package.json index a3315648688fa..91e580a7407cb 100644 --- a/packages/react-components/react-theme-sass/package.json +++ b/packages/react-components/react-theme-sass/package.json @@ -24,9 +24,12 @@ }, "exports": { ".": { - "style": "./sass/tokens.scss", "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "style": "./sass/tokens.scss", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-theme/library/.swcrc b/packages/react-components/react-theme/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-theme/library/.swcrc +++ b/packages/react-components/react-theme/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-theme/library/package.json b/packages/react-components/react-theme/library/package.json index ebd4308a9890b..3db027e6ecffb 100644 --- a/packages/react-components/react-theme/library/package.json +++ b/packages/react-components/react-theme/library/package.json @@ -24,7 +24,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-timepicker-compat/library/.swcrc b/packages/react-components/react-timepicker-compat/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-timepicker-compat/library/.swcrc +++ b/packages/react-components/react-timepicker-compat/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-timepicker-compat/library/package.json b/packages/react-components/react-timepicker-compat/library/package.json index afc528a1b2846..610e3a7c3ad0c 100644 --- a/packages/react-components/react-timepicker-compat/library/package.json +++ b/packages/react-components/react-timepicker-compat/library/package.json @@ -37,7 +37,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-toast/library/.swcrc b/packages/react-components/react-toast/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-toast/library/.swcrc +++ b/packages/react-components/react-toast/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-toast/library/package.json b/packages/react-components/react-toast/library/package.json index 2330461d4273b..365bd0b15cb30 100644 --- a/packages/react-components/react-toast/library/package.json +++ b/packages/react-components/react-toast/library/package.json @@ -41,7 +41,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-toolbar/library/.swcrc b/packages/react-components/react-toolbar/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-toolbar/library/.swcrc +++ b/packages/react-components/react-toolbar/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-toolbar/library/package.json b/packages/react-components/react-toolbar/library/package.json index dc22c1f733b85..8283aa97e9b41 100644 --- a/packages/react-components/react-toolbar/library/package.json +++ b/packages/react-components/react-toolbar/library/package.json @@ -39,7 +39,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-tooltip/library/.swcrc b/packages/react-components/react-tooltip/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-tooltip/library/.swcrc +++ b/packages/react-components/react-tooltip/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-tooltip/library/package.json b/packages/react-components/react-tooltip/library/package.json index 0a21927409b21..fb237bbd51841 100644 --- a/packages/react-components/react-tooltip/library/package.json +++ b/packages/react-components/react-tooltip/library/package.json @@ -38,7 +38,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-tree/library/.swcrc b/packages/react-components/react-tree/library/.swcrc index 7c60535c03e24..a2c577cb1f91e 100644 --- a/packages/react-components/react-tree/library/.swcrc +++ b/packages/react-components/react-tree/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "experimental": { "plugins": [["swc-plugin-de-indent-template-literal", {}]] }, diff --git a/packages/react-components/react-tree/library/package.json b/packages/react-components/react-tree/library/package.json index 0da8182bb0302..4d965cbf6a26c 100644 --- a/packages/react-components/react-tree/library/package.json +++ b/packages/react-components/react-tree/library/package.json @@ -39,7 +39,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-utilities-compat/library/.swcrc b/packages/react-components/react-utilities-compat/library/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/react-utilities-compat/library/.swcrc +++ b/packages/react-components/react-utilities-compat/library/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/react-utilities-compat/library/package.json b/packages/react-components/react-utilities-compat/library/package.json index c17adf2179c10..374d08299f3fd 100644 --- a/packages/react-components/react-utilities-compat/library/package.json +++ b/packages/react-components/react-utilities-compat/library/package.json @@ -35,7 +35,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/react-utilities/.swcrc b/packages/react-components/react-utilities/.swcrc index 7c60535c03e24..a2c577cb1f91e 100644 --- a/packages/react-components/react-utilities/.swcrc +++ b/packages/react-components/react-utilities/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "experimental": { "plugins": [["swc-plugin-de-indent-template-literal", {}]] }, diff --git a/packages/react-components/react-utilities/package.json b/packages/react-components/react-utilities/package.json index 6b5eb38e43512..3d3bba0f950b4 100644 --- a/packages/react-components/react-utilities/package.json +++ b/packages/react-components/react-utilities/package.json @@ -29,7 +29,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/recipes/.swcrc b/packages/react-components/recipes/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/recipes/.swcrc +++ b/packages/react-components/recipes/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/recipes/package.json b/packages/react-components/recipes/package.json index 1c09729ded11f..d57ccfbe00e0c 100644 --- a/packages/react-components/recipes/package.json +++ b/packages/react-components/recipes/package.json @@ -36,7 +36,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/react-components/theme-designer/.swcrc b/packages/react-components/theme-designer/.swcrc index b4ffa86dee306..a5d9d62d2f9c8 100644 --- a/packages/react-components/theme-designer/.swcrc +++ b/packages/react-components/theme-designer/.swcrc @@ -10,6 +10,7 @@ "/**/*.test.tsx" ], "jsc": { + "baseUrl": ".", "parser": { "syntax": "typescript", "tsx": true, diff --git a/packages/react-components/theme-designer/package.json b/packages/react-components/theme-designer/package.json index 467236e207fca..6115e3141dba2 100644 --- a/packages/react-components/theme-designer/package.json +++ b/packages/react-components/theme-designer/package.json @@ -39,7 +39,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/packages/tokens/package.json b/packages/tokens/package.json index bbe00140f1d92..b22e84a1846a2 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -24,7 +24,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", + "node": { + "module": "./lib/index.js", + "default": "./lib-commonjs/index.js" + }, "import": "./lib/index.js", "require": "./lib-commonjs/index.js" }, diff --git a/tools/workspace-plugin/src/generators/migrate-converged-pkg/index.spec.ts b/tools/workspace-plugin/src/generators/migrate-converged-pkg/index.spec.ts index 9ddbc96b6aa06..b939ed0ac239d 100644 --- a/tools/workspace-plugin/src/generators/migrate-converged-pkg/index.spec.ts +++ b/tools/workspace-plugin/src/generators/migrate-converged-pkg/index.spec.ts @@ -931,7 +931,10 @@ describe('migrate-converged-pkg generator', () => { Object { ".": Object { "import": "./lib/index.js", - "node": "./lib-commonjs/index.js", + "node": Object { + "default": "./lib-commonjs/index.js", + "module": "./lib/index.js", + }, "require": "./lib-commonjs/index.js", "style": "./css/index.css", "types": "./dist/index.d.ts", @@ -1089,6 +1092,7 @@ describe('migrate-converged-pkg generator', () => { '/**/*.test.tsx', ], jsc: { + baseUrl: '.', parser: { syntax: 'typescript', tsx: true, @@ -1447,7 +1451,10 @@ describe('migrate-converged-pkg generator', () => { expect(pkgJson.exports['./unstable']).toMatchInlineSnapshot(` Object { "import": "./lib/unstable/index.js", - "node": "./lib-commonjs/unstable/index.js", + "node": Object { + "default": "./lib-commonjs/unstable/index.js", + "module": "./lib/unstable/index.js", + }, "require": "./lib-commonjs/unstable/index.js", "types": "./dist/unstable.d.ts", } diff --git a/tools/workspace-plugin/src/generators/migrate-converged-pkg/index.ts b/tools/workspace-plugin/src/generators/migrate-converged-pkg/index.ts index bc798ab216deb..91645722e86d2 100644 --- a/tools/workspace-plugin/src/generators/migrate-converged-pkg/index.ts +++ b/tools/workspace-plugin/src/generators/migrate-converged-pkg/index.ts @@ -381,6 +381,7 @@ const templates = { '/**/*.test.tsx', ], jsc: { + baseUrl: '.', parser: { syntax: 'typescript', tsx: true, @@ -630,7 +631,13 @@ function setupUnstableApi(tree: Tree, options: NormalizedSchemaWithTsConfigs) { Object.assign(stableJson.exports, { './unstable': { types: unstableJson.typings?.replace(/\.\.\//g, ''), - ...(packageJson.main ? { node: './lib-commonjs/unstable/index.js' } : null), + ...(packageJson.main + ? { + node: packageJson.module + ? { module: './lib/unstable/index.js', default: './lib-commonjs/unstable/index.js' } + : './lib-commonjs/unstable/index.js', + } + : null), ...(packageJson.module ? { import: './lib/unstable/index.js' } : null), require: './lib-commonjs/unstable/index.js', }, @@ -685,13 +692,19 @@ function updatePackageJson(tree: Tree, options: NormalizedSchemaWithTsConfigs) { } function setupExportMaps(json: PackageJson) { + const commonjs = json.main ? normalizePackageEntryPointPaths(json.main) : null; + const esm = json.module ? normalizePackageEntryPointPaths(json.module) : null; + json.exports = { '.': { types: json.typings, ...(json.style ? { style: normalizePackageEntryPointPaths(json.style) } : null), - ...(json.main ? { node: normalizePackageEntryPointPaths(json.main) } : null), - ...(json.module ? { import: normalizePackageEntryPointPaths(json.module) } : null), - ...(json.main ? { require: normalizePackageEntryPointPaths(json.main) } : null), + // The `module` condition lets ESM-aware bundlers (webpack/rollup/vite) pick the ESM build on + // node-targeted builds so they can tree-shake, while bare Node ignores `module` and falls back + // to CommonJS (`default`) - keeping SSR resolution single-instance and dual-package-hazard free. + ...(commonjs ? { node: esm ? { module: esm, default: commonjs } : commonjs } : null), + ...(esm ? { import: esm } : null), + ...(commonjs ? { require: commonjs } : null), }, './package.json': './package.json', }; diff --git a/tools/workspace-plugin/src/types.ts b/tools/workspace-plugin/src/types.ts index 1b0e524daf29f..5e272f4fafbdb 100644 --- a/tools/workspace-plugin/src/types.ts +++ b/tools/workspace-plugin/src/types.ts @@ -47,7 +47,17 @@ export interface PackageJson { dependencies?: Record; devDependencies?: Record; peerDependencies?: Record; - exports?: Record>; + exports?: Record< + string, + | string + | Partial<{ + types: string; + style: string; + node: string | { module: string; default: string }; + import: string; + require: string; + }> + >; } export interface PackageJsonWithBeachball extends PackageJson {