
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@swc/core-win32-x64-msvc
Advanced tools
The @swc/core-win32-x64-msvc package is a precompiled binary of the SWC (Speedy Web Compiler) core specifically for Windows 64-bit systems using the MSVC compiler. SWC is a super-fast compiler written in Rust that compiles JavaScript/TypeScript down to efficient, optimized JavaScript code. It is designed to be a faster alternative to Babel with support for modern JavaScript features and TypeScript.
JavaScript/TypeScript Compilation
This feature allows the compilation of modern JavaScript or TypeScript code into a version compatible with older environments. The code sample demonstrates how to transform a simple piece of JavaScript code to be compatible with ES5 standards.
import { transformSync } from '@swc/core';
const sourceCode = `const x = 1 + 2;`;
const output = transformSync(sourceCode, {
jsc: {
target: 'es5'
}
});
console.log(output.code);
Minification
This feature enables the minification of JavaScript code to reduce its size and improve load times on web pages. The code sample shows how to minify a simple function.
import { transformSync } from '@swc/core';
const sourceCode = `function add(a, b) { return a + b; }`;
const output = transformSync(sourceCode, {
minify: true
});
console.log(output.code);
Source Maps
This feature provides support for source maps, which help in debugging by mapping the transformed code back to the original source code. The code sample demonstrates generating a source map for a simple expression.
import { transformSync } from '@swc/core';
const sourceCode = `const x = 1 + 2;`;
const output = transformSync(sourceCode, {
sourceMaps: true
});
console.log(output.map);
Babel is a well-known JavaScript compiler that also allows transforming JavaScript with plugins. Compared to @swc/core-win32-x64-msvc, Babel is generally slower but has a larger ecosystem of plugins and more extensive configuration options.
The TypeScript compiler can convert TypeScript code to JavaScript, providing type checking and the latest ECMAScript features. While it does not focus on speed or minification, it is essential for projects that use TypeScript for type safety.
Esbuild is a super-fast JavaScript bundler and minifier. It compiles JavaScript and TypeScript like SWC but is focused more on bundling. Esbuild typically performs faster than SWC in bundling scenarios but might have fewer configuration options for language transformations.
@swc/core-win32-x64-msvc
This is the x86_64-pc-windows-msvc binary for @swc/core
[1.12.14] - 2025-07-14
(es/minifier) Don't inline arrow when it contain this
(#10825) (8b43bb3)
(es/parser) Make export
in NS to not affect file type (#10799) (ae22033)
(es/parser) Correctly check ambient context (#10802) (f97ea03)
(es/parser) Enable support for dynamic import with defer
phase (#10845) (097d29d)
(plugin) Remove bytecheck
to make Wasm plugins backward compatible (#10842) (30ad808)
(bindings) Fix dependency issues (7c57fbb)
(deps) Update class-validator
to avoid comments (#10819) (bacfa4b)
(ide) Enable --workspace
for rust-analyzer check (#10809) (92647ff)
(es/helpers) Make inline helpers optional at compile time (#10808) (53f3881)
(es/lints) Remove warnings without features (#10794) (41d507f)
(es/parser) Reduce call to parse_decorators
(#10846) (356d3a0)
(es/preset-env) Use strpool,phf for corejs2 data (#10803) (1652fd8)
(es/react) Remove redundant replace
calls (#10795) (a670b37)
(hstr) Make the deallocation of Atom
s explicit (#10813) (406433d)
FAQs
Super-fast alternative for babel
The npm package @swc/core-win32-x64-msvc receives a total of 1,764,977 weekly downloads. As such, @swc/core-win32-x64-msvc popularity was classified as popular.
We found that @swc/core-win32-x64-msvc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.