From 43cf9f69e2dba57be4fa4b7620f2e0a89bc313b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 17 Jul 2024 23:12:46 +0800 Subject: [PATCH] fix: only import type statement closes #1157, closes #1156 --- src/esbuild/swc.ts | 6 +++--- src/rollup/ts-resolve.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/esbuild/swc.ts b/src/esbuild/swc.ts index 9822baae..2ba0c501 100644 --- a/src/esbuild/swc.ts +++ b/src/esbuild/swc.ts @@ -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 => { diff --git a/src/rollup/ts-resolve.ts b/src/rollup/ts-resolve.ts index 5a450c18..08744648 100644 --- a/src/rollup/ts-resolve.ts +++ b/src/rollup/ts-resolve.ts @@ -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'