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
Two js bundles, one clean, one uglified, both as an es2015 module
One clean (human-readable) definition file (.d.ts)
A worker-loader that ideally produces inline-code
Development
A source-map also
An html demo and a dev server would be great but not the most important thing
With rollup instead of webpack and the right plugins...
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.