Affects Version/s: None
Fix Version/s: None
Using npm-deps to specify a dependency on a library with es6 modules causes errors in Google Closure, making the dependency unusable.
rc-time-picker comes as a set of es6 modules in the es/ subfolder as well as "traditional" module.exports in the lib/ subdirectory. The package.json specifies both as module and main respectively (see https://github.com/react-component/time-picker/blob/master/package.json).
Using this in a clojurescript build with npm-deps like the following makes google closure pick the es6 part and later complain about the file mixing goog.provide and es6 modules:
A simple app.cljs requiring "rc-time-picker" :as ... causes the following errors during compilation:
Specifying :language-in and :language-out doesn't help.
The error messages are caused by the Clojurescript code which copies the code from node_modules/rc-time-picker/es/ to out/node_modules/rc-time-picker and where it adds various goog.provide statements to the top of the file, while the end of the file is a export default ... statement.