npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sonamu-kit/ts-loader

v2.1.3

Published

@sonamu-kit/loader는 [`@loaderkit/ts`](https://www.npmjs.com/package/@loaderkit/ts)를 기반으로 하여 Sonamu 프레임워크에서 사용할 목적으로 약간의 수정을 가한 TypeScript 로더입니다.

Readme

@sonamu-kit/loader

@sonamu-kit/loader는 @loaderkit/ts를 기반으로 하여 Sonamu 프레임워크에서 사용할 목적으로 약간의 수정을 가한 TypeScript 로더입니다.

Credit: laverdet for @loaderkit/ts. Thank you for your great work!

원본 패키지로부터의 주요 변경사항

1. 트랜스파일러 변경 (esbuild → swc)

위치: utility/swc.ts - transpileSource() 함수

esbuild 대신 swc를 사용하여 트랜스파일하도록 변경했습니다. swc가 더 빠르며 Sonamu 프로젝트 전반에서 사용 중입니다.

2. Yarn PnP Virtual 경로 지원

위치: utility/swc.ts:14-16, utility/swc.ts:35-36

Yarn PnP의 virtual 경로(.yarn/__virtual__/)에서 소스맵 파일을 찾을 수 없어 발생하는 오류를 방지하기 위해 inputSourceMap: false 옵션을 조건부로 적용합니다.

3. .ts 확장자 Fully Resolved Path 처리

위치: esm.ts:179-224 - resolve

file:///.../specifier.ts 형식의 TypeScript 파일을 직접 import할 수 있도록 처리합니다. 원본은 file:/// 경로를 무조건 "트랜스파일된 js 파일"로 간주했으나, TypeScript 파일이면 그대로 반환하도록 수정했습니다.

4. Yarn PnP Virtual 경로 트랜스파일 제외

위치: esm.ts:287-289

Virtual 경로의 파일은 이미 빌드된 파일이므로 트랜스파일을 건너뜁니다.

관련 커밋

  • 1037683: loader가 swc 트랜스파일 할 때 virtual 경로라면 입력 소스 맵 비활성화
  • 10f1b7a: 더이상 안 쓰는 dynohot의 흔적을 loader에서 제거

npm version isc license github action npm downloads

🐘 @loaderkit/ts - A nodejs loader for TypeScript

This is a simple loader for well-configured TypeScript projects running in nodejs.

This loader does not perform any type checking. It only performs transpilation. A well-configured project should run tsc -b -w in a separate process.

This loader should only be used in projects which use ECMAScript modules. A well-configured project should not be using CommonJS.

Source maps are passed along in the transpilation process, so the --enable-source-maps nodejs flag is recommended.

An extra degree of care has been taken to ensure that import.meta.url is correct. My belief is that the behavior of your program should not be different between development and production versions. And I don't think that this should be controversial either. So, when an output destination is specified in the nearest tsconfig.json then import.meta.url will be the value it would have been if run from the tsc-transpiled output.

EXAMPLE

main.ts

const value: string = 'hello world';
console.log(value);
$ node --import @loaderkit/ts test.ts
hello world