SoominHan / import-sorter

MIT License
89 stars 28 forks source link

support for import assertion #92

Open natelindev opened 2 years ago

natelindev commented 2 years ago

nodejs added a new syntax: https://nodejs.org/api/esm.html#import-assertions would be helpful if this extension can support it:

import fooData from './foo.json' assert { type: 'json' };

const { default: barData } =
  await import('./bar.json', { assert: { type: 'json' } });
daidodo commented 2 years ago

@natelindev There is another plugin JS/TS Import/Export Sorter which supports it.