Skip to content

Commit

Permalink
fix: only import type statement
Browse files Browse the repository at this point in the history
closes #1157, closes #1156
  • Loading branch information
sxzz committed Jul 17, 2024
1 parent 26e1bb7 commit 43cf9f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/esbuild/swc.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Use SWC to emit decorator metadata
*/
import { type JscConfig } from '@swc/core'
import { type Plugin } from 'esbuild'
import type { JscConfig } from '@swc/core'
import type { Plugin } from 'esbuild'
import path from 'path'
import { type Logger } from '../log'
import type { Logger } from '../log'
import { localRequire } from '../utils'

export const swcPlugin = ({ logger }: { logger: Logger }): Plugin => {
Expand Down
2 changes: 1 addition & 1 deletion src/rollup/ts-resolve.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs'
import path from 'path'
import { type PluginImpl } from 'rollup'
import type { PluginImpl } from 'rollup'
import _resolve from 'resolve'
import createDebug from 'debug'
import { builtinModules } from 'module'
Expand Down

0 comments on commit 43cf9f6

Please sign in to comment.