Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@s-ui/js-compiler

Package Overview
Dependencies
Maintainers
78
Versions
97
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.29.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
78
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 06 May 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc