Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
/ register Public archive

Use @swc-node/register instead

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

swc-project/register

Repository files navigation

@swc/register

One of the ways you can use swc is through the require hook. The require hook will bind itself to node's require and automatically compile files on the fly.

Install

npm i -D @swc/core @swc/register

or

yarn add --dev @swc/core @swc/register

Usage

require("@swc/register");

All subsequent files required by node will be transformed by swc. You can also call @swc/register directly from command line.

swc-node <filename>
node -r '@swc/register' <filename>

 


@swc/register is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0). See COPYRIGHT for details.

About

Use @swc-node/register instead

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published