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$",
}
]
],
},
},
});
cargo fmt
Licensed under the MIT license.
Copyright (c) Juga Paazmaya [email protected]