Fork me on GitHub
#shadow-cljs
<
2019-11-16
>
Joel Holmes02:11:10

If I’m importing an NPM class with a period in it? import { Document } from 'react-pdf/dist/entry.webpack';

lilactown05:11:38

I have a JS module I just added to my classpath:

import React from "react";

console.log(React);
logs undefined. I am able to require "react" in my CLJS ns' just fine

lilactown05:11:14

ah, import * as React. forgot my JS for a sec...

thheller09:11:35

@lilactown actually the import React would be correct but due to undefined CJS->ESM interop it is still import * for now

thheller09:11:34

@holmes89 was there an actual question? importing with a dot is fine if that is the actual name of the file?

Joel Holmes12:11:45

Sorry my question was how do you use the import statement for a library that has a dot or an @ in it in the require statement in a cljs file?

dotemacs13:11:58

@holmes89 does ["react-pdf/dist/entry.webpack" :as some-cool-name] work ?

Filipe Silva20:11:03

heya, is there a date for the next release?

thheller20:11:14

@filipematossilva will try to do one tomorrow, kinda wanted to finish the UI CLJS eval parts but that was way more work than I anticipated 😛

Filipe Silva21:11:46

no pressure from me, just wondering 😄