Skip to content

Latest commit

 

History

History
 
 

sui-js-compiler

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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

Via package.json (Recommended)

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

Via CLI

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

Options

Option Type Default Description
--ignore string | glob - Takes all the pattern comma separated and ignore them during compilation.
$ ./node_modules/.bin/sui-js-compiler --ignore=./src/**/*.test.js

## 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.a