Skip to content

RiESAEX/swc-plugin-negative-indices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swc-plugin-negative-indices

A plugin for swc to transform let a = arr[-1]; to let a = arr[arr.length - 1];

Usage

download .wasm from release .swcrc

{
  "jsc": {
    "experimental": {
      "plugins": [
        [
          "absolute path to .wasm",
          {}
        ]
      ]
    }
  }
}