Closed fengxinming closed 4 years ago
hi @fengxinming , import/export
and require/exports
are module standards which first one belongs to ESModule and second one belongs to CommonJS. I believe buble is more focusing on compiling syntaxes to ES2015, without transpiling your ESModule to CJS modules. check https://buble.surge.sh/guide/#using-es-modules
similar issue here https://github.com/bublejs/buble/issues/143
Yep, out of scope for this library.
Only use
buble
to transformimport
andexport
intorequire
andexports
.