Completed
Details
Assignee
António Monteiro
António MonteiroReporter
Roman Liutikov
Roman LiutikovLabels
Approval
Screened
Patch
Code and Test
Fix versions
Priority
Created April 8, 2016 at 7:50 PM
Updated March 2, 2018 at 1:25 PM
Resolved March 2, 2018 at 1:25 PM

When using a foreign lib which is ES2015 module with default export, the value which is being exported is assigned to a property
defaulton a namespace object. In ClojureScript code this means one should call todefaultvar of that namespace. However in complied output of ClojureScript code the namedefaultis getting munged todefault$.export default function inc(v) { return v + 1; }(ns cljs-example.core (:require [lib.inc :as lib])) (lib/default 0)goog.provide("module$lib$inc"); function inc$$module$lib$inc(v){return v+1} module$lib$inc.default=inc$$module$lib$inc// Compiled by ClojureScript 1.8.40 {} goog.provide('cljs_example.core'); goog.require('cljs.core'); goog.require('module$lib$inc'); module$lib$inc.default$.call(null,(0)); //# sourceMappingURL=core.js.map