Hey, - I have a multi platform project - one of th...
# javascript
d
Hey, • I have a multi platform project • one of the modules is a JS module, which is going to be exported • that module uses objects from the other modules, added as dependencies When I export the JS file, I can export the classes in the JS module, but not the classes in the other modules, Is there a way to make webpack to export them?
t
Legacy or IR?
d
Legacy
@turansky If you have some idea with IR, I could consider to migrate
a
We are currently exporting classes and functions from different modules, as long as you mark those exportees with
@JsExport
you are good to go
d
@andylamax it doesn’t, I didn’t find any docs related, and I run out of ideas, do you know what should I check? I’m able to return the objects, and receive them as parameters as regular JS objects. I’m getting the error trying to create the object from JS, something like:
Copy code
let obj = new module.package.Object()
and if I console.log the module, I only can find the classes on the module which is being exported
a
It surely works for us. We are using IR compiler.