2.0.0 • Published 11 months ago

swcr v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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

11 months ago

1.3.2

1 year ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago