RolandJansen / intermix

Typescript/Javascript framework for building sequencer-based audio apps
GNU Lesser General Public License v3.0
6 stars 0 forks source link

Change bundler webpack -> rollup #158

Closed RolandJansen closed 4 years ago

RolandJansen commented 4 years ago

I recognized with shock that webpack isn't able to output es2015 modules. You can do this with babel (and other plugins) but we have 2020, es6 is totally common and doing this with a bloated devstack and complicated config feels wrong.

The problem is this:

Currently we output an UMD module and this doesn't seem to work with the typescript definition bundler-plugin (which in fact seems to be generating broken output). Without typedefs we can't develop intermix-based apps and external plugins in Typescript.

The plan is this:

Production

Development

With rollup instead of webpack and the right plugins...

... this could be achieved without additional tools.

RolandJansen commented 4 years ago

All done. Workers get loaded inline with the new file-loader without plugins.