Socket
Book a DemoInstallSign in
Socket

@s-ui/js-compiler

Package Overview
Dependencies
Maintainers
88
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/js-compiler

JavaScript & TypeScript Compiler

1.30.0
latest
npmnpm
Version published
Weekly downloads
7.1K
21.99%
Maintainers
88
Weekly downloads
 
Created
Source

@s-ui/js-compiler

Compile your JavaScript and JSX files to be compatible with the browsers

It provides:

  • Unified code transformation.
  • Usage of SWC to compile files faster.

Installation

$ npm install @s-ui/js-compiler --save-dev

Usage

"scripts": {
  "prepublishOnly": "sui-js-compiler"
}

Via CLI

$ ./node_modules/.bin/sui-js-compiler

Options

OptionTypeDefaultDescription
--ignorestring | glob-Takes all the pattern comma separated and ignore them during compilation.
--modernboolean-Transpile using modern browser targets.
$ ./node_modules/.bin/sui-js-compiler --ignore=./src/**/*.test.js
$ ./node_modules/.bin/sui-js-compiler --modern

Compiling TypeScript files and generating type declarations

This tools lets you compile TS files and generate their type declarations in your packages out of the box. It will do it if the package itself has a tsconfig.json placed in its root folder.

## Requirements

Automatically, @s-ui/js-compiler searches for /src folder and outputs the compiled files to /lib.

Contributing

Please refer to the main repo contributing info.

FAQs

Package last updated on 27 Mar 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.