parcel-resolver-typescript-module
v0.1.9
Published
Parcel resolver for typescript modules
Downloads
201
Maintainers
Readme
parcel-resolver-typescript-module
Parcel resolver for typescript modules
Support
- [x] baseUrl
- [x] pathMapping
- [x] node_modules
- [ ] URL schemes
Usage
Install as development dependency:
pnpm install --save-dev parcel-resolver-typescript-module
npm install --save-dev parcel-resolver-typescript-module
yarn add --dev parcel-resolver-typescript-module
parcel@^2
and@parcel/plugin
packages must be installed.
Add the parcel-resolver-typescript-module
in the resolver list of your .parcelrc
configuration file:
{
"extends": "@parcel/config-default",
"resolvers": [
"parcel-resolver-typescript-module",
"..."
],
"transformers": {
"*.{ts,tsx}": [
"@parcel/transformer-typescript-tsc"
]
}
}
Note: since the resolver's order is sequential, use this before parcel default resolver "..."
.
Development
Clone this repo and run pnpm install
.
Run pnpm run test
for the test suite.
To use a local build in a project, run pnpm link --global
to create a global link in your machine and run pnpm link --global parcel-resolver-typescript-module
inside your project. See pnpm link for more details.