Skip to content

[0 config] add new cli option to suppress the MIXED_EXPORT warning #284

@JounQin

Description

@JounQin

Clear and concise description of the problem

[MIXED_EXPORT] Warning: Entry module "index" is using named (including "cjsRequire", "configs", "createNodeResolver", "default", "flatConfigs", "importX", "importXResolverCompat", "meta", "rules") and default exports together. Consumers of your bundle will have to use `src/index.ts.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.

Suggested solution

--output-exports named

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions