Skip to content

Explore a potential SWC integration #140

Description

@mikearnaldi

We could leverage a combination of SWC plugins https://swc.rs/docs/usage/plugins and the LanguageService API to enable direct compilation with SWC.

PROS:

  • maybe speed improvements, typescript would only need to type-check and provides its context to the plugin
  • smooth integration with next.js out of the box
  • vite integration via rollup plugins https://github.com/egoist/unplugin-swc

CONS:

  • maybe problematic to keep consistency between files in the language services and files in swc, ideally a plugin would call some kind of processCallExpressionAtLocation etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions