Skip to content

when i build a lib, found this problem #8163

@CigoZim

Description

@CigoZim

Describe the bug

when i do build lib with config "rollupOptions.output.banner",why I found three different effects ,and the code is error for umd

the banner like this:

const banner = `//
/*!
*----------------------------------------------------
* ${pkg.name} v${pkg.version}
* (c) ${new Date().getFullYear()} @${pkg.author.name}.
* Released under the ${pkg.license} License.
*-----------------------------------------------------
!*///
`;

图片

Reproduction

Reproduction

System Info

vite2 vue3 ts

Used Package Manager

yarn

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions