Socket
Book a DemoInstallSign in
Socket

metro-minify-swc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-minify-swc

Metro bundler minifier implementation using SWC

latest
npmnpm
Version
1.0.0-alpha
Version published
Maintainers
1
Created
Source

metro-minify-swc

⚡️ Fast and efficient minification for Metro using SWC ⚡️

npm version License: MIT

🚀 A fast JavaScript minifier for Metro bundler using SWC (Speedy Web Compiler). This package provides a drop-in replacement for Metro's default minifier, offering improved performance through SWC's Rust-based implementation.

⚠️ Experimental Package Notice: This package is currently in an experimental stage and may not work correctly in all scenarios. If you encounter any issues or bugs while using it, please help improve the package by reporting them in the GitHub Issues section. Your feedback is valuable for making this package more stable and reliable!

✨ Features

  • 🔥 High Performance: Powered by SWC's Rust implementation for blazing fast minification
  • 🔄 Drop-in Replacement: Easy integration with Metro bundler
  • ⚙️ Configurable: Flexible configuration options for compression and mangling

📦 Installation

npm install --save-dev metro-minify-swc
# or
yarn add --dev metro-minify-swc
# or
pnpm add -D metro-minify-swc

🚀 Usage

Update your Metro configuration:

module.exports = {
  transformer: {
    minifierPath: 'metro-minify-swc',
    minifierConfig: {}, // Required - set to empty object for default settings
  },
};

You can customize the minification behavior by passing options to minifierConfig.

📄 License

MIT

Keywords

metro

FAQs

Package last updated on 10 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.