Skip to content

Preserving directives #292

@aidenybai

Description

@aidenybai

Describe the feature

Since RSC has come out, it would be nice for unbuild to provide the ability to preserve directives / write directives at build time.

'use client' // preserved

...

or:

export default defineBuildConfig({
  ...,
 banner: {
 	js: "use client"
 }
});

Additional information

  • Would you be willing to help implement this feature?

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