handle `export ... from ...` imports
bendlas opened this issue · 3 comments
bendlas commented
As part of our usage of konan in clojurescript, we tripped over this issue when trying to process material-components-web
, e.g. with https://unpkg.com/@material/drawer@0.5.4/index.js
Issue on the cljs tracker: https://dev.clojure.org/jira/browse/CLJS-2325
egoist commented
Added in v1.2.0
bendlas commented
Great! Thanks for the quick response. It seems, that your patch still doesn't handle export default
.
https://github.com/tc39/proposal-export-default-from#exporting-a-default-as-default
egoist commented
// handled, it's ExportNamedDeclaration
export default from "mod"
// handled, there's `import`
import default from "mod";
export { default };
// just added a patch to handle ExportAllDeclaration
export * from "mod"