Windows 32-bit IA32 native binary for SWC (Speedy Web Compiler) providing high-performance JavaScript/TypeScript compilation.
npx @tessl/cli install tessl/npm-swc--core-win32-ia32-msvc@1.13.0@swc/core-win32-ia32-msvc is a platform-specific binary distribution package that provides the Windows 32-bit IA32 architecture native binaries for SWC (Speedy Web Compiler). This package contains compiled native code that enables high-performance JavaScript and TypeScript compilation on Windows 32-bit systems.
@swc/coreThis package is a binary distribution that contains no direct JavaScript API. Instead, it provides the native implementation that powers the SWC compiler functionality through the main @swc/core package. The package is automatically selected and loaded by @swc/core when running on Windows 32-bit IA32 architecture.
The package contains two binary files:
This package is not intended to be installed directly. It is automatically installed as an optional dependency when installing @swc/core on Windows 32-bit IA32 systems.
# Install the main package (this binary package is included automatically)
npm install @swc/coreThe native binaries in this package are automatically loaded by @swc/core to provide the following functionality:
// These APIs are provided by @swc/core using this binary package
import { transform, transformSync, parse, parseSync, minify, minifySync } from '@swc/core';Provides the native implementation for all SWC operations on Windows 32-bit IA32 architecture.
// The binary is loaded automatically by @swc/core
const bindings = require('./swc.win32-ia32-msvc.node');The package is conditionally loaded based on platform and architecture specifications.
{
"os": ["win32"],
"cpu": ["ia32"]
}The native addon exports the following low-level binding functions used by @swc/core:
// Low-level binding functions (not for direct use)
interface NativeBindings {
transform(src: string, isModule: boolean, options: Buffer): TransformOutput;
transformSync(src: string, isModule: boolean, options: Buffer): TransformOutput;
transformFile(src: string, isModule: boolean, options: Buffer): Promise<TransformOutput>;
transformFileSync(src: string, isModule: boolean, options: Buffer): TransformOutput;
parse(src: string, options: Buffer, filename?: string): Promise<string>;
parseSync(src: string, options: Buffer, filename?: string): string;
parseFile(path: string, options: Buffer): Promise<string>;
parseFileSync(path: string, options: Buffer): string;
print(programJson: string, options: Buffer): Promise<TransformOutput>;
printSync(program: string, options: Buffer): TransformOutput;
minify(code: Buffer, opts: Buffer, isJson: boolean, extras: NapiMinifyExtra): Promise<TransformOutput>;
minifySync(code: Buffer, opts: Buffer, isJson: boolean, extras: NapiMinifyExtra): TransformOutput;
bundle(confItems: Buffer): Promise<{ [index: string]: { code: string, map?: string } }>;
analyze(src: string, options: Buffer): Promise<string>;
getTargetTriple(): string;
initCustomTraceSubscriber(traceOutFilePath?: string): void;
newMangleNameCache(): object;
}
interface TransformOutput {
code: string;
map?: string;
output?: string;
diagnostics: Array<string>;
}
interface NapiMinifyExtra {
mangleNameCache?: object;
}The included swc.exe provides direct command-line access to SWC functionality:
# Command-line usage (available when package is installed)
swc input.js -o output.js
swc --helpThis package specifically targets the i686-pc-windows-msvc architecture:
The native binding provides metadata about the loaded binary:
// Metadata functions available through the native binding
interface BinaryMetadata {
getTargetTriple(): string; // Returns "i686-pc-windows-msvc"
}This package integrates seamlessly with @swc/core through automatic platform detection:
// @swc/core automatically loads the appropriate binary
import { transform } from '@swc/core';
// The native binary from this package is used transparently
const result = await transform(sourceCode, {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
target: 'es2020',
},
});If the native binary cannot be loaded, @swc/core will attempt to fall back to the WebAssembly version (@swc/wasm) if available.
This package is part of the SWC ecosystem's multi-platform binary distribution:
@swc/core: Main package that uses this binary@swc/core-win32-x64-msvc: Windows 64-bit x64 binary@swc/core-linux-x64-gnu: Linux 64-bit x64 binary@swc/core-darwin-x64: macOS 64-bit x64 binaryFor usage instructions and API documentation, refer to the main SWC documentation at https://swc.rs/docs, as this package provides the underlying native implementation without exposing its own API surface.