提交 9bd582ce 编写于 作者: fxy060608's avatar fxy060608

fix(cli): TypeScript with SourceMap #2120

上级 cb994014
......@@ -28,7 +28,14 @@ function getSourceRoot () {
}
function moduleFilenameTemplate (info) {
if (!info.allLoaders && info.resourcePath) {
if (
info.resourcePath &&
(
!info.allLoaders ||
info.query.includes('type=script&lang=ts') ||
info.resourcePath.endsWith('.ts')
)
) {
const filepath = normalizePath(path.relative(getSourceRoot(), info.absoluteResourcePath))
if (filepath.indexOf('../') === 0) {
return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册