Skip to content

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

@exposir

Description

@exposir

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,
  },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions