Registry / devops / gulp-oxc-minify

gulp-oxc-minify

JSON →
library1.0.0jsnpmunverified

A Gulp plugin for minifying ES6+ JavaScript using the oxc-minify library. Current stable version is 1.0.0. It provides fast and modern minification via Rust-based oxc, with TypeScript type definitions included. Compared to other Gulp minifiers like gulp-uglify or gulp-terser, gulp-oxc-minify leverages oxc's speed and supports newer ECMAScript features out of the box. Release cadence is tied to the gulp-plugins monorepo, with updates expected as oxc-minify evolves.

npm install gulp-oxc-minify
INSTALL
IMPORT
SIG · GULP-OXC-MINIFY
G
gulp-oxc-minify
devopsjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import oxcMinify from 'gulp-oxc-minify'
const oxcMinify = require('gulp-oxc-minify')
ESM-only package; CommonJS require will not work.
OxcMinifyOptions
import type { OxcMinifyOptions } from 'gulp-oxc-minify'
import { OxcMinifyOptions } from 'gulp-oxc-minify'
TypeScript type import only; cannot be used at runtime.
oxcMinify
import oxcMinify from 'gulp-oxc-minify'
import { oxcMinify } from 'gulp-oxc-minify'
Default export; named import is incorrect.

Demonstrates basic usage of gulp-oxc-minify as a Gulp plugin to minify JavaScript files, using ESM imports and TypeScript type support.

import gulp from 'gulp'; import oxcMinify from 'gulp-oxc-minify'; export default function minify() { return gulp.src('src/**/*.js') .pipe(oxcMinify()) .pipe(gulp.dest('dist')); }
Debug
Known issues
gotchaThe package is ESM-only and requires Node.js >=22.19.0 or >=24.11.0. CommonJS require() will fail.
fix
Use ES module imports and ensure Node.js version meets requirements.
affects: >=1.0.0
gotchaThe `oxcMinify` function is a default export. Named imports like `{ oxcMinify }` will result in undefined.
fix
Use `import oxcMinify from 'gulp-oxc-minify'`.
affects: >=1.0.0
deprecatedThis plugin is part of the gulp-plugins monorepo; options may change in future releases. Check the oxc-minify documentation for available options.
fix
Stay updated with the monorepo changelog.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: oxcMinify is not a function
Using named import `{ oxcMinify }` instead of default import.
fix
Change to `import oxcMinify from 'gulp-oxc-minify'`.
Error [ERR_REQUIRE_ESM]: require() of ES Module
Attempting to use CommonJS require() on an ESM-only package.
fix
Switch to ESM imports (`import`) and ensure package.json has '"type": "module"'.
SyntaxError: Unexpected token 'export'
Running on an older Node.js version that does not support ESM syntax.
fix
Upgrade Node.js to ^22.19.0 or >=24.11.0.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
oxc-transformoptionalRuntime dependency for the actual minification transformation.
Agent activity
6 hits · last 30 days
node
6
Resources
gulp-oxc-minify — npm install gulp-oxc-minify · libregistry