Socket
Socket
Sign inDemoInstall

tsconfig-paths-webpack-plugin

Package Overview
Dependencies
Maintainers
12
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsconfig-paths-webpack-plugin

Load modules according to tsconfig paths in webpack.


Version published
Weekly downloads
5.6M
decreased by-4.06%
Maintainers
12
Weekly downloads
 
Created

What is tsconfig-paths-webpack-plugin?

The tsconfig-paths-webpack-plugin is a plugin for webpack that allows you to leverage the paths defined in your tsconfig.json file. This means you can alias paths in your TypeScript code and have those aliases correctly resolved by webpack when bundling your application. It simplifies the module resolution process when using TypeScript with webpack.

What are tsconfig-paths-webpack-plugin's main functionalities?

Path Resolution

This feature allows webpack to resolve paths based on the aliases defined in the tsconfig.json file. The code sample shows how to include the TsconfigPathsPlugin in your webpack configuration.

const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

module.exports = {
  // ... other webpack config settings ...
  resolve: {
    plugins: [
      new TsconfigPathsPlugin({ configFile: './path/to/tsconfig.json' })
    ]
  }
};

Other packages similar to tsconfig-paths-webpack-plugin

FAQs

Package last updated on 29 Jul 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc