Skip to content

Commit 43cf9f6

Browse files
committed
fix: only import type statement
closes #1157, closes #1156
1 parent 26e1bb7 commit 43cf9f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/esbuild/swc.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
22
* Use SWC to emit decorator metadata
33
*/
4-
import { type JscConfig } from '@swc/core'
5-
import { type Plugin } from 'esbuild'
4+
import type { JscConfig } from '@swc/core'
5+
import type { Plugin } from 'esbuild'
66
import path from 'path'
7-
import { type Logger } from '../log'
7+
import type { Logger } from '../log'
88
import { localRequire } from '../utils'
99

1010
export const swcPlugin = ({ logger }: { logger: Logger }): Plugin => {

src/rollup/ts-resolve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs'
22
import path from 'path'
3-
import { type PluginImpl } from 'rollup'
3+
import type { PluginImpl } from 'rollup'
44
import _resolve from 'resolve'
55
import createDebug from 'debug'
66
import { builtinModules } from 'module'

0 commit comments

Comments
 (0)