Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-tsconfig-paths

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-tsconfig-paths

Vite resolver for TypeScript compilerOptions.paths

  • 4.3.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3M
increased by1.07%
Maintainers
1
Weekly downloads
 
Created

What is vite-tsconfig-paths?

The vite-tsconfig-paths npm package is a plugin for Vite that allows users to leverage the paths defined in their tsconfig.json file for module resolution. This means that you can define custom paths for imports in your TypeScript configuration and have them correctly resolved when using Vite as your build tool.

What are vite-tsconfig-paths's main functionalities?

Custom Path Resolution

Allows you to use custom paths defined in tsconfig.json within your Vite project. For example, if you have a path alias '@' pointing to 'src/', you can import modules using this alias.

import { myUtil } from '@/utils/myUtil';

Easy Configuration

The plugin can be easily added to your Vite configuration with a simple import and adding it to the plugins array.

import viteTsconfigPaths from 'vite-tsconfig-paths';

export default {
  plugins: [viteTsconfigPaths()],
};

Other packages similar to vite-tsconfig-paths

Keywords

FAQs

Package last updated on 16 Jan 2024

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