All Projects → swc-project → register

swc-project / register

Licence: other
Super fast alternative for babel-register

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to register

website
Documentation for the SWC project.
Stars: ✭ 53 (+39.47%)
Mutual labels:  swc
jest
Super-fast alternative for babel-jest or ts-jest without type checking
Stars: ✭ 472 (+1142.11%)
Mutual labels:  swc
rollup-plugin-swc
Rollup plugin to compile bundles with the SWC.
Stars: ✭ 59 (+55.26%)
Mutual labels:  swc
react-ssr-starter
🔥 ⚛️ A React boilerplate for a universal web app with a highly scalable, offline-first foundation and our focus on performance and best practices.
Stars: ✭ 40 (+5.26%)
Mutual labels:  swc
nextjs-complete-boilerplate
Next js 12.3.1 boilerplate with Styled Components, Jest, React Testing Library, Prettier, ESLint, Plop JS and more 🚀
Stars: ✭ 50 (+31.58%)
Mutual labels:  swc
navis
Python 3 library for analysis of neuroanatomical data
Stars: ✭ 68 (+78.95%)
Mutual labels:  swc
dts2as
Convert TypeScript definitions (d.ts files) into ActionScript classes and interfaces for use as external libraries with Apache FlexJS
Stars: ✭ 37 (-2.63%)
Mutual labels:  swc
cli
CLI for swc
Stars: ✭ 87 (+128.95%)
Mutual labels:  swc
rc
Structured system configuration (I moved from NixOS to GuixSD)
Stars: ✭ 97 (+155.26%)
Mutual labels:  swc
Aleph.js
The Full-stack Framework in Deno.
Stars: ✭ 3,448 (+8973.68%)
Mutual labels:  swc
Swc
swc is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript.
Stars: ✭ 18,627 (+48918.42%)
Mutual labels:  swc
swc-loader
Webpack plugin for swc
Stars: ✭ 245 (+544.74%)
Mutual labels:  swc

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].