
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
craco-ts-loader
Advanced tools
Rewire `ts-loader` loader in your `create-react-app` project using `craco`.
This is an adaptation of craco-babel-loader, but for ts-loader.
If you are here, you've followed the use-ts-loader recipe, but things are not working as expected and your craco.config.js imports craco-babel-loader.
NOTE: The text below was adapted from craco-babel-loader
$ yarn add craco-ts-loader
# npm v5+
$ npm install craco-ts-loader
# before npm v5
$ npm install --save craco-ts-loader
// crago.config.js
// see: https://github.com/sharegate/craco
const path = require("path");
const fs = require("fs");
const rewireTsLoader = require("craco-ts-loader");
// helpers
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
module.exports = {
plugins: [
//This is a craco plugin: https://github.com/sharegate/craco/blob/master/packages/craco/README.md#configuration-overview
{ plugin: rewireTsLoader,
options: {
includes: [resolveApp("node_modules/isemail")], //put things you want to include in array here
excludes: [/(node_modules|bower_components)/] //things you want to exclude here
//you can omit include or exclude if you only want to use one option
}
}
]
}
node.js and npm. See: https://github.com/creationix/nvm#installationyarn. See: https://yarnpkg.com/en/docs/installnpm dependencies. Run: yarn installyarn run lintyarn run prettyyarn run testyarn run prepublishyarn run buildMIT.
FAQs
Rewire `ts-loader` loader in your `create-react-app` project using `craco`.
The npm package craco-ts-loader receives a total of 29 weekly downloads. As such, craco-ts-loader popularity was classified as not popular.
We found that craco-ts-loader demonstrated a not healthy version release cadence and project activity because the last version was released 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.