@swc/plugin-swc-confidential

1.0.4 • Public • Published

@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");

Readme

Keywords

none

Package Sidebar

Install

npm i @swc/plugin-swc-confidential

Homepage

swc.rs

Weekly Downloads

3

Version

1.0.4

License

Apache-2.0

Unpacked Size

661 kB

Total Files

8

Last publish

Collaborators

  • kwonoj
  • kdy1