Skip to content

caio-oliv/parcel-resolver-typescript-module

Repository files navigation

parcel-resolver-typescript-module

Parcel resolver for typescript modules

Support

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.

Releases

No releases published

Packages

No packages published