Skip to content

Commit

Permalink
chore: update tsup config and fix import paths
Browse files Browse the repository at this point in the history
Updated tsup configuration to include all TypeScript files in the src directory as entry points, as well as specifying external dependencies to improve build output and bundle size. Fixed import paths in several components after reorganizing file structure.
  • Loading branch information
hairyf committed Jun 9, 2023
1 parent ddfc167 commit 4ed8530
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/vue3-pixi/src/components/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { throttle } from '@antfu/utils'
import { Application as _Application } from 'pixi.js'
import type { ColorSource, Container } from 'pixi.js'
import type { App, PropType } from 'vue-demi'
import { createApp } from '@vue-pixi/renderer'
import { appInjectKey } from '@vue-pixi/composables'
import { createApp } from '../../renderer'
import { appInjectKey } from '../../composables'

export interface ApplicationInst {
canvas: HTMLCanvasElement
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3-pixi/src/components/external/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable vue/one-component-per-file */
import type { App, PropType } from 'vue-demi'
import { createApp, defineComponent, getCurrentInstance, h, inject, onMounted, onUnmounted, ref } from 'vue-demi'
import { appInjectKey } from '@vue-pixi/composables'
import { appInjectKey } from '../../composables'
import { inheritParent } from './utils'

export const External = defineComponent({
Expand Down
1 change: 1 addition & 0 deletions packages/vue3-pixi/src/global.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import '@vue/runtime-core'
import 'pixi.js'
import type { SimpleRopeComponent } from './elements/simpleRope'
import type { SimplePlaneComponent } from './elements/simplePlane'
import type { NineSlicePlaneComponent } from './elements/nineSlicePlane'
Expand Down
File renamed without changes.

0 comments on commit 4ed8530

Please sign in to comment.