This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
wrong order in webpack "resolve" #593
Open
Description
In all webconfig using typescript there is an issue with the order of the resolve extensions.
an example:
https://github.com/NativeScript/nativescript-dev-webpack/blob/master/templates/webpack.typescript.js#L72
Typescript is put first. Which means that if there is a the ts and the js file at the same location, webpack will try to package the ts file. This will make the bundle compilation fail. The fix is really easy, put .js
before .ts
You will ask when will this happen? Well for me it happens while developing modules. I use npm link for easy development. So I have ts and js file in the same place. I got the error with angular ngtools webpack