vscode-typescript-exportallmodules icon indicating copy to clipboard operation
vscode-typescript-exportallmodules copied to clipboard

Customize the export method of specific files

Open nooooooom opened this issue 3 years ago • 0 comments

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'

nooooooom avatar Mar 03 '23 02:03 nooooooom