andreypopp / andreypopp/typescript-loader
node.d.ts is unusable with this loader
- 主要言語
- JavaScript
- スター
- 81
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hey,
thanks for the great project. But unfortunately I have run into an issue. If you install the node.d.ts from definitelytyped.org the loader tries to resolve the `require` statements inside that file, even though they refer to definitions inside that file.
Excerpt from my config:
``` js
resolve: { extensions: ['', '.webpack.js', '.web.js', '.js', '.ts'] }
loaders: [
{
test: /\.ts?$/,
exclude: /node_modules/,
loader: 'babel!typescript-loader?noImplicitAny=true&target=es6!ts-jsx-loader'
}
]
```
The error is
```
Module build failed: Error: Cannot resolve module 'net.ts' in path/to/typings/node
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。