@shopify/liquid-html-parser package has no `.js.map` files

未关闭
#535 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
build-system

调研方向

检查已发布的 @shopify/liquid-html-parser v2.0.5 软件包,重点关注其中的 dist/*.js 文件、缺失的 /src 目录以及不存在的 .js.map 文件。将软件包内容和 sourceMappingURL 引用与预期的 npm 构件进行比较,然后验证通过 @shopify/theme-check-common v2.9.2 使用它时不再产生 source map 加载错误。

由索引模型根据 Issue 内容生成。

描述

Describe the bug
@shopify/liquid-html-parser package has no /src folder and .js.map files. We can check that on npmjs.com (linked to package name above). This package is used in @shopify/theme-check-common package that is needed for .liquid files checking.
Naturally, missing .js.map files results in errors if you have source mapping for dependencies in your project. Errors like that:

WARNING in ./node_modules/@shopify/liquid-html-parser/dist/conditional-comment.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'X:\work\shop\shops\node_modules\@shopify\liquid-html-parser\dist\conditional-comment.js.map' file:
Error: ENOENT: no such file or directory, open 'X:\work\shop\shops\node_modules\@shopify\liquid-html-parser\dist\conditional-comment.js.map'

Expected behaviour
@shopify/liquid-html-parser package has /src folder and .js.map files and has no source map loading errors.

Actual behaviour
@shopify/liquid-html-parser package has no /src folder and .js.map files.
But tries to use sourceMappingURLs in the every .js files like in the screenshot:
Image

Debugging information

  • Lib Version - latest of @shopify/liquid-html-parser (v2.0.5)
  • Lib Version that uses liquid-html-parser - latest of @shopify/theme-check-common (v2.9.2)
主要语言
TypeScript
星标
245
派生
108
平均合并
2 天 8 小时
30 天内合并 PR
24

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Shopify/theme-tools 的其他 Issue

查看 Shopify/theme-tools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。