Skip to content

Commit

Permalink
Fix import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
steveruizok committed Oct 28, 2021
1 parent 641cf73 commit 4ce1779
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/core/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function main() {
tsconfig: './tsconfig.build.json',
external: ['react', 'react-dom'],
metafile: true,
sourcemap: true,
})

const esmResult = esbuild.buildSync({
Expand All @@ -41,6 +42,7 @@ async function main() {
jsxFragment: 'React.Fragment',
external: ['react', 'react-dom'],
metafile: true,
sourcemap: true,
})

let esmSize = 0
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/shape-utils/TLShapeUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as React from 'react'
import Utils from '~utils'
import { intersectPolylineBounds } from '@tldraw/intersect'
import type { TLBounds, TLComponentProps, TLForwardedRef, TLShape, TLUser } from 'types'
import type { TLBounds, TLComponentProps, TLForwardedRef, TLShape, TLUser } from '~types'

export abstract class TLShapeUtil<T extends TLShape, E extends Element = any, M = any> {
refMap = new Map<string, React.RefObject<E>>()
Expand Down
2 changes: 0 additions & 2 deletions packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"docs"
],
"compilerOptions": {
"rootDir": "src",
"baseUrl": "src",
"composite": false,
"incremental": false,
"declarationMap": false,
Expand Down

0 comments on commit 4ce1779

Please sign in to comment.