Skip to content

Latest commit

 

History

History
executable file
·
42 lines (31 loc) · 1.4 KB

README.md

File metadata and controls

executable file
·
42 lines (31 loc) · 1.4 KB

SWC plugin to ignore and remove certain imports based on configuration

Rust CI Code Smells codecov

Inspired by babel-plugin-ignore-import, and since I needed this functionality it was a blocker to moving fully utilizing SWC.

import { transformSync } from "@swc/core";

const output = transformSync(input, {
  jsc: {
    experimental: {
      plugins: [
        [
          "swc-plugin-ignore-import",
          {
            pattern: ".scss$",
          }
        ]
      ],
    },
  },
});

Code style

cargo fmt

Version history

Changes happening across different versions and upcoming changes are tracked in the CHANGELOG.md file.

License

Licensed under the MIT license.

Copyright (c) Juga Paazmaya [email protected]