swc-project / website

Documentation for the SWC project.

Home Page:https://swc.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`plugin/ecmascript/getting-started`'s code is not working

AkifumiSato opened this issue · comments

commented

https://swc.rs/docs/plugin/ecmascript/getting-started
I tried to follow this document but the contents seem to be out of date.

e.g.

- e.visit_mut_children_with(self);
+ e.span.visit_mut_children_with(self);

- e.left = Ident::new("kdy1".into(), e.left.span()).into();
+ e.left = Box::new(Ident::new("akfm".into(), e.left.span()).into());