Skip to content

Latest commit

 

History

History

swc-confidential

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@swc/plugin-swc-confidential

Usage

.swcrc:

{
  "jsc": {
    "experimental": {
      "plugins": ["@swc/plugin-swc-confidential", {
        // Possible values:
        //
        // AES-128
        // AES-192
        // AES-256
        algorithm: "AES-256",
        encryptionKey: process.env.FLAGS_SECRET,
        prefix: "secure:"
      }]
    }
  }
}

Input

console.log(/*#__CONFIDENTIAL__*/ "newDashboard")

Output

console.log("secure:de454774988d624b8f317bbe9dadfe1f");