From 8939dd7a20a7f92471aced24e854db362e77af93 Mon Sep 17 00:00:00 2001 From: Vlad Moroz Date: Mon, 3 Jun 2024 17:05:22 +0200 Subject: [PATCH] Fix module resolution in edge cases (#2931) * Specify the CJS option for the build * Track versions --- .yarn/versions/70d7cf62.yml | 61 +++++++++++++++++++++++++++++++++++++ build.mjs | 1 + 2 files changed, 62 insertions(+) create mode 100644 .yarn/versions/70d7cf62.yml diff --git a/.yarn/versions/70d7cf62.yml b/.yarn/versions/70d7cf62.yml new file mode 100644 index 000000000..d77d57426 --- /dev/null +++ b/.yarn/versions/70d7cf62.yml @@ -0,0 +1,61 @@ +releases: + "@radix-ui/number": minor + "@radix-ui/primitive": minor + "@radix-ui/react-accessible-icon": minor + "@radix-ui/react-accordion": minor + "@radix-ui/react-alert-dialog": minor + "@radix-ui/react-announce": minor + "@radix-ui/react-arrow": minor + "@radix-ui/react-aspect-ratio": minor + "@radix-ui/react-avatar": minor + "@radix-ui/react-checkbox": minor + "@radix-ui/react-collapsible": minor + "@radix-ui/react-collection": minor + "@radix-ui/react-compose-refs": minor + "@radix-ui/react-context": minor + "@radix-ui/react-context-menu": minor + "@radix-ui/react-dialog": minor + "@radix-ui/react-direction": minor + "@radix-ui/react-dismissable-layer": minor + "@radix-ui/react-dropdown-menu": minor + "@radix-ui/react-focus-guards": minor + "@radix-ui/react-focus-scope": minor + "@radix-ui/react-form": minor + "@radix-ui/react-hover-card": minor + "@radix-ui/react-id": minor + "@radix-ui/react-label": minor + "@radix-ui/react-menu": minor + "@radix-ui/react-menubar": minor + "@radix-ui/react-navigation-menu": minor + "@radix-ui/react-popover": minor + "@radix-ui/react-popper": minor + "@radix-ui/react-portal": minor + "@radix-ui/react-presence": minor + "@radix-ui/react-primitive": minor + "@radix-ui/react-progress": minor + "@radix-ui/react-radio-group": minor + "@radix-ui/react-roving-focus": minor + "@radix-ui/react-scroll-area": minor + "@radix-ui/react-select": minor + "@radix-ui/react-separator": minor + "@radix-ui/react-slider": minor + "@radix-ui/react-slot": minor + "@radix-ui/react-switch": minor + "@radix-ui/react-tabs": minor + "@radix-ui/react-toast": minor + "@radix-ui/react-toggle": minor + "@radix-ui/react-toggle-group": minor + "@radix-ui/react-toolbar": minor + "@radix-ui/react-tooltip": minor + "@radix-ui/react-use-callback-ref": minor + "@radix-ui/react-use-controllable-state": minor + "@radix-ui/react-use-escape-keydown": minor + "@radix-ui/react-use-layout-effect": minor + "@radix-ui/react-use-previous": minor + "@radix-ui/react-use-rect": minor + "@radix-ui/react-use-size": minor + "@radix-ui/react-visually-hidden": minor + "@radix-ui/rect": minor + +declined: + - primitives diff --git a/build.mjs b/build.mjs index 369241cf3..088d62709 100644 --- a/build.mjs +++ b/build.mjs @@ -12,6 +12,7 @@ async function build(path) { packages: 'external', bundle: true, sourcemap: true, + format: 'cjs', target: 'es2022', outdir: dist, };