Gathering detailed insights and metrics for parcel-resolver-tspaths
Gathering detailed insights and metrics for parcel-resolver-tspaths
Gathering detailed insights and metrics for parcel-resolver-tspaths
Gathering detailed insights and metrics for parcel-resolver-tspaths
parcel-resolver-tspaths-lenient
Supports tsconfig paths in Parcelv2.
@marketplaces.inc-ui/parcel-resolver-tspaths
This has been cloned becasuse the default package did not support .js/.jsx files
@marketplace-co/parcel-resolver-tspaths
This has been cloned becasuse the default package did not support .js/.jsx files
npm install parcel-resolver-tspaths
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (80.88%)
JavaScript (15.75%)
HTML (2.67%)
Shell (0.7%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
66 Commits
3 Forks
1 Watchers
2 Branches
2 Contributors
Updated on Dec 22, 2022
Latest Version
0.0.9
Package Id
parcel-resolver-tspaths@0.0.9
Unpacked Size
14.77 kB
Size
5.23 kB
File Count
5
NPM Version
8.8.0
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Parcel does not make use of tsconfig.json
to resolve path aliases, and instead uses package.json
(reference). This Parcel v2 plugin enables typescript path alias resolution as you would normally expect with webpack or otherwise. As a bonus, intellisense will continue to provide suggestions from your tsconfig.
yarn add -D parcel-resolver-tspaths
or
npm install --save-dev parcel-resolver-tspaths
Ensure all parcel packages are set to minimum version ^2.0.0
and that Parcel is configured for Typescript.
In your .parcelrc, be sure to properly extend the default config and add the plugin to your resolvers like so:
1"extends": "@parcel/config-default", 2"resolvers": ["...", "parcel-resolver-tspaths"], 3"transformers": { 4 "*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"] 5}, 6"validators": { 7 "*.{ts,tsx}": ["@parcel/validator-typescript"] 8},
And that's it. Note: the order of resolvers is sequential, and I highly recommend keeping this resolver after the base resolvers due to parcel bugs.
If you're lazy like me, you might be interested in my package that auto-generates your tsconfig paths as you code. You can read more about tsconfig-paths-autogen
here.
This plugin does not support Typescript aliases while importing non-code assets, but this is being considered for future development.
For example:
1import logo from 'url:@myassets/image/logo.svg';
Clone this repo anywhere, then run yarn && yarn link
in the project root.
In any parcel app, run yarn && yarn link parcel-resolver-tspaths
. Then follow normal build procedures. Real tests coming soon.
If you run into issues viewing verbose output, you can see all raw output by running yarn test |& cat
(Mac/Linux users only).
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More