Skip to content

Commit d2ba199

Browse files
committed
fix(nuxt): fix transform/minify types + bump oxc-transform
1 parent fb87c00 commit d2ba199

File tree

3 files changed

+5
-162
lines changed

3 files changed

+5
-162
lines changed

packages/nuxt/src/core/utils/parse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { tryUseNuxt } from '@nuxt/kit'
22
import type { TransformOptions, TransformResult } from 'oxc-transform'
33
import { transform as oxcTransform } from 'oxc-transform'
44
import { minify } from 'oxc-minify'
5+
import type { MinifyResult } from 'oxc-minify'
56

6-
export function transformAndMinify (input: string, options?: TransformOptions): TransformResult {
7+
export function transformAndMinify (input: string, options?: TransformOptions): TransformResult | MinifyResult {
78
// not async until https://github.com/oxc-project/oxc/issues/10900
89
const oxcOptions = tryUseNuxt()?.options.oxc
910
const transformResult = oxcTransform('', input, { ...oxcOptions?.transform.options, ...options })

packages/schema/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"mini-css-extract-plugin": "2.9.2",
5959
"nitropack": "2.12.3",
6060
"ofetch": "1.4.1",
61-
"oxc-transform": "0.77.0",
61+
"oxc-transform": "0.77.3",
6262
"pkg-types": "2.2.0",
6363
"postcss": "8.5.6",
6464
"rollup-plugin-visualizer": "6.0.3",

pnpm-lock.yaml

Lines changed: 2 additions & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)