You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently a couple of things missing to support this at least at least minimally:
a) bindings to Suspense and lazy
b) a proper way to define "external" components that are used from JS (as I see in the example link there's an import of a JS library)
However, there might be a workaround for the time being:
Move all the lazy loading logic to a .js file:
// in antdTable.js filejoo_global_object.antdTable=require("react").lazy(function(){returnimport('antd/lib/table/Table')});
Add the js file above to dune so the global gets include in final bundle, like this:
Any workarounds for this feature?
I tried this approach (https://github.com/Voronar/jsoo-webpack/blob/master/main.ml#L5), but it is awful.
The text was updated successfully, but these errors were encountered: