kopia lustrzana https://github.com/Tldraw/Tldraw
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
rodzic
7ad9ee0a67
commit
c823a44fd4
|
@ -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 }
|
||||
|
|
Ładowanie…
Reference in New Issue