craco-plugin-ts-paths
v0.1.7
Published
plugin to add typescript paths to react craco project
Downloads
2,581
Maintainers
Readme
A plugin for craco to add paths specified in tsconfig.json file
Instalation
npm install craco-plugin-ts-paths
Usage
An example for usage can be seen here
in your carco config import the following function
const {createTypescriptPathsPlugin} = require('craco-plugin-ts-paths')
and then add the plugin in the plugins section with
plugins: [
...
createTypescriptPathsPlugin(path_to_tsconfig_file),
...
]