
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
@nothing-but/node-resolve-ts
Advanced tools
Resolve TypeScript files in Node.js using ESM loader hooks.
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
.
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
This loader only handles the compilation of .jsx
/.tsx
files.
For .ts
files you can use --experimental-strip-types
, tsx
or ts-node
.
See the tests folder for a client/ssr code example
and package.json for a test script to run it.
FAQs
Resolve TypeScript files in Node.js using ESM loader hooks.
The npm package @nothing-but/node-resolve-ts receives a total of 2 weekly downloads. As such, @nothing-but/node-resolve-ts popularity was classified as not popular.
We found that @nothing-but/node-resolve-ts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.