Skip to content

Release 1.3.0

Latest
Compare
Choose a tag to compare
@yakovlev-alexey yakovlev-alexey released this 19 Oct 07:57
· 6 commits to main since this release

Release 1.3.0 makes tsconfig.json resolution compatible with Parcel itself and allows using this plugin within JS projects.

tsconfig.json resolution

From 1.3.0 parcel-resolver-ts-base-url will look for tsconfig.json files starting from the import location going up the folder structure.

.
├── tsconfig.json
├── server
│       ├── tsconfig.json
│       └── index.ts # uses server/tsconfig.json
├── client
│       ├── tsconfig.json
│       └── index.ts # uses client/tsconfig.json
└── common
        └── index.ts # uses ./tsconfig.json

This resolved #3

JavaScript imports

Previously parcel-resolver-ts-base-url would only work with imports happening in ts or tsx files. From now on just like TypeScript Compiler it will also resolve in JavaScript files.

This does not resolve #2 but should help using this plugin in your JavaScript Parcel projects.

Upcoming features

Next issue to be worked on is #4. At the moment extends property in tsconfig.json is ignored. Since the support for multiple tsconfig.json in different directories was added it would make sense to allow having a base config extended in subdirectories.


I recently discovered that this package got somewhat popular on NPM. I am not using Parcel in any of my current project at work or outside of it. So if you are interested in collaborating on maintaining this project make sure to reach out to me!