源映射中的行号不正确
作者: rgpublic创建于 2024年7月30日更新于 2026年9月14日
标签pending triage
有时行号会有点偏离。我尝试弄清楚这个问题,并尽可能减少样式。请参阅附件的 ZIP 文件。我使用 NodeJS API,基本上是这个代码(摘要):
let { code, map } = transform({ filename: 'style.css', code: Buffer.from(codeBuffer), inputSourceMap: Buffer.from(mapBuffer), minify: true, sourceMap: true });
code+="\n/*# sourceMappingURL="+path.basename(outfile)+".map */\n";
内容来源: parcel-bundler/lightningcss