diff --git a/src/utils.js b/src/utils.js index 6763ee5..7db615a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -3,8 +3,6 @@ /** @typedef {import("terser").MinifyOptions} TerserOptions */ /** @typedef {import("terser").CompressOptions} TerserCompressOptions */ /** @typedef {import("terser").ECMA} TerserECMA */ -/** @typedef {import("@swc/core").JsMinifyOptions} SwcMinifyOptions */ -/** @typedef {import("@swc/core").TerserCompressOptions} SwcCompressOptions */ /** @typedef {import("./index.js").ExtractCommentsOptions} ExtractCommentsOptions */ /** @typedef {import("./index.js").ExtractCommentsFunction} ExtractCommentsFunction */ /** @typedef {import("./index.js").ExtractCommentsCondition} ExtractCommentsCondition */ @@ -552,7 +550,7 @@ uglifyJsMinify.getMinimizerVersion = () => { async function swcMinify(input, sourceMap, minimizerOptions) { /** * @param {PredefinedOptions & import("@swc/core").JsMinifyOptions} [swcOptions={}] - * @returns {SwcMinifyOptions & { sourceMap: undefined } & { compress: SwcCompressOptions }} + * @returns {import("@swc/core").JsMinifyOptions & { sourceMap: undefined } & { compress: import("@swc/core").TerserCompressOptions }} */ const buildSwcOptions = (swcOptions = {}) => { // Need deep copy objects to avoid https://github.com/terser/terser/issues/366 diff --git a/types/utils.d.ts b/types/utils.d.ts index 64883a9..5212b39 100644 --- a/types/utils.d.ts +++ b/types/utils.d.ts @@ -4,8 +4,6 @@ export type TerserFormatOptions = import("terser").FormatOptions; export type TerserOptions = import("terser").MinifyOptions; export type TerserCompressOptions = import("terser").CompressOptions; export type TerserECMA = import("terser").ECMA; -export type SwcMinifyOptions = import("@swc/core").JsMinifyOptions; -export type SwcCompressOptions = import("@swc/core").TerserCompressOptions; export type ExtractCommentsOptions = import("./index.js").ExtractCommentsOptions; export type ExtractCommentsFunction =