2.0.0 • Published 2 years ago

swcr v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

swcr

Swc register for node.js. Efficient typescript runtime.

Install

npm i -D swcr @swc/core
# or
yarn add -D swcr @swc/core
# or
pnpm add -D swcr @swc/core

Usage

node -r swcr file.ts

You can custom jsxFactory, jsxFragmentFactory, target in your tsconfig.json.

Methods

const { register } = require('swcr/dist/node')

const { unregister } = register({
  // ...options
})

// Unregister the require hook if you don't need it anymore
unregister()

Thanks/Inspiration

License

MIT

2.0.0

2 years ago

1.3.2

2 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago