Closed wooorm closed 3 years ago
If someone has a better name for useDynamicImport
, I’m all ears.
My previous ideas of outputType: 'script' | 'module'
or importStatements: false
: not too happy with them either. For the first, it doesn’t make sense to output a script
with outputFormat: 'program'
. For the second: it’s too vague and this functionality also affects export … from
.
View rendered readme
Split previously experimental into two stable options:
useDynamicImport
— compile import statements into dynamic import expressionsbaseUrl
— resolve relative import specifiers from a given URLThis additionally fixes two bugs in the
'function-body'
output format:export * from 'a'
was not supportedexport {a as b}
was invertedCloses GH-23. Related-to GH-26.
/cc @lunelson