
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@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 EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.