This PR will add an SWC plugin which can be used instead of the Babel plugin in Vite or Nest.js apps.
Background
Vite and Nest.js are currently two of the most popular front end frameworks. Both promote using SWC as the default transpiler as it boasts much better performance compared to the Babel.
POC
[ ] Write a visitor that logs the name of each node it visited
[ ] Test locally (publish with yalc)
Todo
[x] Initial SWC plugin scaffolding
[ ] Add testing infra
[ ] Fix build in CI
[ ] Implement a failing test for @Provides() –> @Provides({name: 'foo'})
This PR will add an SWC plugin which can be used instead of the Babel plugin in Vite or Nest.js apps.
Background
Vite and Nest.js are currently two of the most popular front end frameworks. Both promote using SWC as the default transpiler as it boasts much better performance compared to the Babel.
POC
Todo
@Provides() –> @Provides({name: 'foo'})
@Provides()
@Inject() foo!: Foo; –> @Inject('foo') foo!: Foo;
fixes #162 (at some point 😉 )