cjs-loader icon indicating copy to clipboard operation
cjs-loader copied to clipboard

Node.js loader for compiling ESM & TypeScript modules to CommonJS

Results 5 cjs-loader issues
Sort by recently updated
recently updated
newest added

BREAKING CHANGE: importing a non TypeScript file now requires `allowJs`

Fixes https://github.com/esbuild-kit/tsx/issues/96 for cjs-loader. Same strategy as https://github.com/esbuild-kit/esm-loader/pull/57 I added a test case to show that it works. ✅

Same as https://github.com/esbuild-kit/tsx/issues/344 but for cjs files.