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

CJS 格式下打包 js 文件,sourceMappingURL 错误 #602

Open
G233 opened this issue Mar 7, 2023 · 4 comments
Open

CJS 格式下打包 js 文件,sourceMappingURL 错误 #602

G233 opened this issue Mar 7, 2023 · 4 comments

Comments

@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'
    }
});

看了下源码是 js 的文件就会出现这个问题?官方的 demo 里面随意添加一个 js 文件就可以复现这个 bug
image

@PeachScript
Copy link
Member

@2239559319 有时间的话看看这个问题哈

@G233
Copy link
Author

G233 commented Mar 19, 2023

求大佬帮忙看看这个问题~

@2239559319
Copy link
Contributor

求大佬帮忙看看这个问题~

麻烦给一下os version node version package manager version,我这边用了linux和windows没有复现

@lianliana
Copy link

同样发现了这个问题,应该是foo111.js.map,我手动改了下dist打包出来的文件就好了

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

No branches or pull requests

4 participants