unjs/unimport

Support for import attributes

Opened this issue · 0 comments

Describe the feature

Add support for import attributes which can be useful with unplugin-macros to define global macros. E.g., { name: 'multiplied', from: 'my-macro-library', with: { type: 'macro' } } would yield:

import { multiplied }  from 'my-macro-library' with { type: 'macro' };

Additional information

  • Would you be willing to help implement this feature?