You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@nothing-but/node-resolve-ts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nothing-but/node-resolve-ts

Resolve TypeScript files in Node.js using ESM loader hooks.

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

Solid Node Register

Solid Node Register

version

Node loader for compiling JSX/TSX files using Solid's compiler. Uses Node's Module Customization Hooks to register the loader for .jsx and .tsx files.

Requires Node >=20.6.0.

Usage

Install the loader

npm i solid-node-register # or pnpm, yarn, etc.

Run jsx/tsx files in SSR mode

node --import=solid-node-register ./index.tsx

Run jsx/tsx files in client mode.
Requires a browser condition to import the browser solid runtime.
Also requires for the DOM api to be mocked with jsdom or similar.

node --conditions=browser --import=solid-node-register/client ./index.tsx

TypeScript

This loader only handles the compilation of .jsx/.tsx files.
For .ts files you can use --experimental-strip-types, tsx or ts-node.

Example

See the tests folder for a client/ssr code example
and package.json for a test script to run it.

Keywords

node

FAQs

Package last updated on 27 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts