or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

docs

index.md
tile.json

tessl/npm-swc--core-linux-x64-musl

Platform-specific native binary providing SWC compiler implementation for Linux x64 musl systems as optional dependency

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@swc/core-linux-x64-musl@1.13.x

To install, run

npx @tessl/cli install tessl/npm-swc--core-linux-x64-musl@1.13.0

index.mddocs/

SWC Core Linux x64 Musl

SWC Core Linux x64 Musl is a platform-specific native binary distribution containing the compiled Rust implementation of SWC (Speedy Web Compiler) optimized for Linux x64 systems with musl libc. This package provides no JavaScript API and serves exclusively as an optional dependency for the main @swc/core package.

Package Information

  • Package Name: @swc/core-linux-x64-musl
  • Package Type: npm
  • Language: Native binary (compiled from Rust)
  • Installation: Automatically installed as optional dependency of @swc/core
  • Target Platform: Linux x64 systems with musl libc (Alpine Linux, etc.)

Core Imports

This package exports no JavaScript API. All SWC functionality is accessed through the main @swc/core package:

import { transform, transformSync, parse, parseSync } from "@swc/core";

For CommonJS:

const { transform, transformSync, parse, parseSync } = require("@swc/core");

Basic Usage

This package cannot be used directly. It is consumed automatically by @swc/core when running on compatible Linux musl systems:

// This uses @swc/core, which automatically loads the musl binary when available
import { transform } from "@swc/core";

const result = await transform(`
  const message: string = "Hello, World!";
  console.log(message);
`, {
  filename: "example.ts",
  jsc: {
    parser: {
      syntax: "typescript",
    },
    target: "es2018",
  },
  module: {
    type: "commonjs",
  },
});

Architecture

This package contains only a single compiled native binary file:

  • swc.linux-x64-musl.node: The compiled SWC Rust implementation optimized for Linux x64 musl systems
  • Native Binary Loading: Automatically loaded by @swc/core when running on compatible systems
  • Platform Detection: Used only when process.platform === 'linux' and musl libc is detected
  • Optional Dependency: Installed alongside other platform binaries but only loaded when appropriate

Capabilities

Native Binary Distribution

This package serves as a platform-specific native binary distribution for SWC's core functionality.

// No direct API - this package provides only the compiled binary
// All functionality is accessed through @swc/core

Key characteristics:

  • Contains compiled Rust code optimized for Linux x64 musl systems
  • Provides no JavaScript exports or TypeScript definitions
  • Automatically detected and loaded by the main @swc/core package
  • Enables high-performance compilation on Alpine Linux and similar musl-based systems
  • Part of SWC's multi-platform binary distribution strategy

Installation and Usage

This package is automatically installed when installing @swc/core on compatible systems. No direct interaction is required:

# Installing @swc/core will automatically include platform-specific binaries
npm install @swc/core

# The musl binary is automatically used when running on compatible systems
# No additional configuration needed

Platform Compatibility

  • Operating System: Linux
  • Architecture: x64 (x86_64)
  • C Library: musl libc
  • Common Distributions: Alpine Linux, Void Linux, OpenWrt
  • Container Usage: Ideal for Alpine-based Docker containers

Technical Details

  • Binary Name: swc.linux-x64-musl.node
  • Format: Node.js native addon (.node file)
  • Loading: Automatic via @swc/core's platform detection
  • Performance: Optimized for musl libc systems
  • Dependencies: None (self-contained binary)