Skip to content

SWC plugin to ignore and remove certain imports based on configuration

License

Notifications You must be signed in to change notification settings

paazmaya/swc-plugin-ignore-import

Repository files navigation

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 paazmaya@yahoo.com

About

SWC plugin to ignore and remove certain imports based on configuration

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •