0.1.28 • Published 3 years ago

parcel-plugin-tsconfig-paths v0.1.28

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

parcel-plugin-typescript-paths

This plugin enabled parcel to be aware of typescript module paths (module aliasing).

pipeline status CodeFactor

Installation

npm install --save-dev parcel-plugin-typescript-paths

WARNING

This project is in heavy development and will change. Please don't use on production.

Feel free to contribute.

Known Limitations

This plugin uses regular expressions to perform a search and replace in your code. To avoid collisions, it is recommended to only use unique names as your paths. For example, if you have the following in your tsconfig:

"paths": {
    "upload": ["src/upload"],
}

and you have the following content string in your code:

Students, import your work for review 
by clicking the button "upload".

then "upload" will get replaced with "src/upload".

The following would be a better configuration since "@upload" is probably less likely to be used as a content string in your app:

"paths": {
    "@upload": ["src/upload"],
}
0.1.25

3 years ago

0.1.26

3 years ago

0.1.27

3 years ago

0.1.28

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago