Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esm sourceMappingURL #553

Closed
zoro-r opened this issue Dec 5, 2022 · 5 comments
Closed

esm sourceMappingURL #553

zoro-r opened this issue Dec 5, 2022 · 5 comments

Comments

@zoro-r
Copy link

zoro-r commented Dec 5, 2022

esm 打包出来的文件 sourceMappingURL 不对

实际打包结果
//# sourceMappingURL=index.js

应该是

//# sourceMappingURL=index.js.map
@PeachScript
Copy link
Member

请提供复现步骤或复现仓库

@2239559319 有空看看吗

@zoro-r
Copy link
Author

zoro-r commented Dec 5, 2022

image

官方的demo就行 这里的sourceMappingURL应该是.js.map吧

@2239559319
Copy link
Contributor

请提供复现步骤或复现仓库

@2239559319 有空看看吗
#555 这个问题测试刚好漏了这个

@PeachScript
Copy link
Member

v4.1.1 已发布,包含该修复

@G233
Copy link

G233 commented Mar 7, 2023

升级到最新的版本依然遇到了这样的问题,这是我的配置文件

import { defineConfig } from 'father';

export default defineConfig({
    platform: 'browser',
    cjs: {
        sourcemap: true,
        input: 'src',
        transformer: 'babel',
        output: 'dist'
    }
});

但是也不是全部的文件都有问题
image

看了下源码是 js 的文件就会出现这个问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants