Skip to content

Customize the export method of specific files #22

Open
@nooooooom

Description

@nooooooom

For example, for .vue files, we allow exporting in this way export { default as Component } from 'Component.vue', it may look like this in the configuration

{
  '*.vue': {
    all: true,
    default: 'filename' // 'filename' | 'camel-filename' | 'capitalize-filename'
  }
}

it will get an export result like

export * from 'Component.vue'
export { default as Component } from 'Component.vue'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions