-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Description
What version of OCaml are you using?
This is using bs-platform@3.0.
It would be nice if bucklescript supported code splitting via dynamic imports. Even though dynamic import is stage 3, Webpack has supported a version of it for quite some time code splitting.
/* Foo.re */
let x = 5;
/* Importer.re */
import(Foo /* maybe just a relative path? */)
|> Js.Promise.then_(/* hand waving */);
would generate the following code
import ('./Foo.js').then(foo => foo.x);
kennetpostigo, cortopy, saitonakamura, thangngoc89, chinmayakcv and 14 more
Metadata
Metadata
Assignees
Labels
No labels