Socket
Socket
Sign inDemoInstall

@swc/core-win32-x64-msvc

Package Overview
Dependencies
0
Maintainers
2
Versions
453
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @swc/core-win32-x64-msvc

Super-fast alternative for babel


Version published
Weekly downloads
1.7M
decreased by-3.84%
Maintainers
2
Created
Weekly downloads
 

Package description

What is @swc/core-win32-x64-msvc?

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.

What are @swc/core-win32-x64-msvc's main functionalities?

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);

Other packages similar to @swc/core-win32-x64-msvc

Changelog

Source

[1.5.7] - 2024-05-14

Documentation

  • (es/typescript) Fix example (#8952) (ff60960)

Readme

Source

@swc/core-win32-x64-msvc

This is the x86_64-pc-windows-msvc binary for @swc/core

Keywords

FAQs

Last updated on 15 May 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc