@Pauan and @wegry have been working on bundling using Rollup (see #2207)
The implementation of psc-bundle relies on some guesswork as to the output of the compiler, and the result is that it is quite fragile. It can be difficult to understand why some FFI code works when bundled and some doesn't.
I would very much like to reduce the scope of psc-bundle before 1.0. I would remove almost all of the features except for concatenating our Common JS output, shimming require if necessary, and outputting source maps. This is the minimum needed to support PSCi in the browser, and Try PureScript, both of which use psc-bundle for serving compiled dependencies.
@Pauan and @wegry have been working on bundling using Rollup (see #2207)
The implementation of
psc-bundlerelies on some guesswork as to the output of the compiler, and the result is that it is quite fragile. It can be difficult to understand why some FFI code works when bundled and some doesn't.I would very much like to reduce the scope of
psc-bundlebefore 1.0. I would remove almost all of the features except for concatenating our Common JS output, shimmingrequireif necessary, and outputting source maps. This is the minimum needed to support PSCi in the browser, and Try PureScript, both of which usepsc-bundlefor serving compiled dependencies.