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

bug: 为什么 esm 和 cjs 只能打包 src 目录下的文件 #795

Open
exposir opened this issue Nov 27, 2024 · 0 comments
Open

bug: 为什么 esm 和 cjs 只能打包 src 目录下的文件 #795

exposir opened this issue Nov 27, 2024 · 0 comments

Comments

@exposir
Copy link

exposir commented Nov 27, 2024

Version

4.2.3

OS Version

14.4.1 (23E224)

Node.js Version

16

Link to minimal reproduction

暂无

Steps to reproduce

暂无

What is expected?

可以打包不固定文件夹的文件

What is actually happening?

暂无

Any additional comments? (optional)

文件没有在 src 目录下,目前这样没有打包出文件

import { defineConfig } from "father";

export default defineConfig({
  esm: {
    input: ".",
    output: "es",
    platform: "browser",
    transformer: "swc",
  },
  cjs: {
    input: ".",
    output: "lib",
    platform: "browser",
    transformer: "swc",
  },
  umd: {
    entry:'index.ts',
    output: "dist",
    sourcemap: true,
  },
});
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

1 participant