3.6.0 • Published 1 year ago

esbuild-register v3.6.0

Weekly downloads
11,280
License
MIT
Repository
-
Last release
1 year ago

esbuild-register

npm version npm downloads

Install

npm i esbuild esbuild-register -D
# Or Yarn
yarn add esbuild esbuild-register --dev
# Or pnpm
pnpm add esbuild esbuild-register -D

Usage

node -r esbuild-register file.ts

It will use jsxFactory, jsxFragmentFactory and target options from your tsconfig.json

Experimental loader support

When using in a project with type: "module" in package.json, you need the --loader flag to load TypeScript files:

node --loader esbuild-register/loader -r esbuild-register ./file.ts

Programmatic Usage

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

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

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

Sponsors

sponsors

License

MIT © EGOIST

@storybook/coredevel-clig-dev-cli@easy-going/shoitqmalita-clivz-vite@spoint/bot@infinitebrahmanuniverse/nolb-esb@everything-registry/sub-chunk-1598@wacoco/ywrangler-configstacktapestrapi-boing-adminstrapi-pack-uptesting-storybookvitdoc@blinkk/root-core@pricking/cliivy-kitkysely-extends-pg-queryhtml-jsxhairylibhaomamakyomailingkoishi-plugin-maimai-player-queuekoishi-plugin-bridge-qq-discordkoishi-plugin-k2345-security@walrus/script-run@wtff/qy-api-gen@wuxh/run@theodoresmotly/custom-strapi@viconsol/admin@vo2-brand-experience/strapi-admin@voltiso/script@voltiso/util.esbuild@yo-lara/drizzle-kit@zazen/cli@zephraph/solitaire@staxjs/cliap2ts@chtibizoux/drizzle-kit@cliz/tsno@cinderblock/rdt@groqz/sanity@handfish/drizzle-kit@hanakla/cep-app-scripts@hahahoarder/strawberry-ui@acdepartment/ac-cli@cmmn/tools@cmmv/cli@codingdud/coolicons@cnole/esno@cnole/esmo@cristianps1988/ds-template@alexvipond/mulago-foundation-portfolio@meeehdi/strapi-adminanci-reactsuchibotsuperflaretype-libarytsxmodtsnd@binochoi/drizzle-kit@blinkk/oak@brainhive/strapi-adminyhubwebpack-mock-viewer@kyedoesdev/hello-neon-client@littlethings/test@leanup/stack@liangskyli/utils@motato/shelljs@sanity/experimental-groqsolid@sanity/tsdoc@sanity/pkg-utils@sanity/cli@sanity/ui-workshop@scale-codec/namespace-codegen-cli@pinefile/pine@pinefile/pinexmkcp-solarpunknovacap-componentsnzxtnuxt-baseshopseam-graphile-workersanitysanity-type-generatorrekubenpm-audit-pipelineplaywright-storybookprestapolyglot-component-libraryptsuprn-strapi-adminshainashops-commongit-interactive-stashgit-whisperer
3.6.0

1 year ago

3.5.0

2 years ago

3.4.0

3 years ago

3.4.2

3 years ago

3.4.1

3 years ago

3.3.3

3 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.1

4 years ago

3.3.2

4 years ago

3.1.2

4 years ago

3.2.0

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.6.0

4 years ago

2.5.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.2.0

5 years ago

1.2.1

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.0

5 years ago