/typescript-plugin-file-replacement

typescript transformer plugin to replace file content

Primary LanguageTypeScript

Typescript Plugin File Replacement

this plugin replace file content instead of import path.

Usage

{
  "compilerOptions": {
    "plugins": [
      {
        "transform": "typescript-plugin-file-replacement",
        "replacements": [
          {
            "replace": "src/dev.env.ts",
             "with": "src/prod.env.ts"
          }
        ]
      }
    ]
  }
}