rearrange export / import from tldraw to help builds (#2739)

It seems like if the downstream build using tldraw has a different build
setup you can run into this issue where it complains that tldraw is
exporting before importing. Prettier tries to undo this so this
preserves the order of things.

### Change Type

- [x] `patch` — Bug fix

### Release Notes

- Build: Help with import/export error on some builds.
pull/2770/head
Mime Čuvalo 2024-02-07 16:30:29 +00:00 zatwierdzone przez GitHub
rodzic 7ad9ee0a67
commit c823a44fd4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -169,6 +169,10 @@ export {
serializeTldrawJsonBlob,
type TldrawFile,
} from './lib/utils/tldr/file'
export { Dialog, DropdownMenu }
import * as Dialog from './lib/ui/components/primitives/Dialog'
import * as DropdownMenu from './lib/ui/components/primitives/DropdownMenu'
// N.B. Preserve order of import / export here with this comment.
// Sometimes this can cause an import problem depending on build setup downstream.
export { Dialog, DropdownMenu }