Socket
Socket
Sign inDemoInstall

@swc/core-win32-arm64-msvc

Package Overview
Dependencies
0
Maintainers
2
Versions
458
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/core-win32-arm64-msvc


Version published
Weekly downloads
1.5M
decreased by-5.78%
Maintainers
2
Created
Weekly downloads
 

Package description

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

@swc/core-win32-arm64-msvc is a high-performance JavaScript/TypeScript compiler written in Rust. It is designed to be a drop-in replacement for Babel, offering faster compilation times and lower memory usage. This specific package is tailored for Windows on ARM64 architecture with the MSVC toolchain.

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

JavaScript/TypeScript Compilation

This feature allows you to compile JavaScript or TypeScript code to a specified ECMAScript version. The example demonstrates transforming modern JavaScript code to ES5.

const swc = require('@swc/core');

const inputCode = `const greet = (name) => { return `Hello, ${name}!`; };`;

swc.transform(inputCode, { jsc: { target: 'es5' } }).then(output => {
  console.log(output.code);
});

Minification

This feature enables code minification, reducing the size of the output JavaScript file. The example shows how to minify a simple addition function.

const swc = require('@swc/core');

const inputCode = `function add(a, b) { return a + b; }`;

swc.transform(inputCode, { minify: true }).then(output => {
  console.log(output.code);
});

Source Maps

This feature generates source maps, which are useful for debugging by mapping the transformed code back to the original source. The example demonstrates generating a source map for a simple function.

const swc = require('@swc/core');

const inputCode = `const greet = (name) => { return `Hello, ${name}!`; };`;

swc.transform(inputCode, { sourceMaps: true }).then(output => {
  console.log(output.map);
});

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

Changelog

Source

[1.3.107] - 2024-01-28

Bug Fixes

  • (es/codegen) Do not produce octal literals (#8565) (07634a0)

  • (es/decorator) Skip TypeScript class method/prop declarations (#8555) (6a8dd8c)

  • (es/decorator) Preserve state while traversing the module_items scope (#8556) (f416aff)

  • (es/loader) Make tsc resolver work for bare specifier (#8550) (d6a4615)

Readme

Source

@swc/core-win32-arm64-msvc

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

Keywords

FAQs

Last updated on 28 Jan 2024

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc