mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
chore(bindings): Add @deprecated
to JS plugins (#8132)
This commit is contained in:
parent
9b27a41b76
commit
1e9b4e027c
@ -175,6 +175,10 @@ import {
|
||||
YieldExpression,
|
||||
} from "@swc/types";
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated JavaScript API is deprecated. Please use Wasm plugin instead.
|
||||
*/
|
||||
export class Visitor {
|
||||
visitProgram(n: Program): Program {
|
||||
switch (n.type) {
|
||||
|
@ -40,6 +40,9 @@ const bindings: typeof import('./binding') = (() => {
|
||||
*/
|
||||
export const version: string = require("./package.json").version;
|
||||
|
||||
/**
|
||||
* @deprecated JavaScript API is deprecated. Please use Wasm plugin instead.
|
||||
*/
|
||||
export function plugins(ps: Plugin[]): Plugin {
|
||||
return mod => {
|
||||
let m = mod;
|
||||
|
Loading…
Reference in New Issue
Block a user