This package has been deprecated

Author message:

Use @swc-node/register instead

@swc/register
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

@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.

Readme

Keywords

Package Sidebar

Install

npm i @swc/register

Weekly Downloads

96,350

Version

0.1.10

License

(Apache-2.0 OR MIT)

Unpacked Size

34.6 kB

Total Files

23

Last publish

Collaborators

  • kdy1
  • kwonoj