Closed maikschneider closed 5 months ago
Hey @maikschneider.
Version 3.0.0 adds support for v12, however drops support for v10 & v11. This way, there won't be need to combine amd
and es6
builds. TypeScript and Rollup.js is still in use, but could be dropped in the future.
Hi @Jeggle-s, to release v12+ compatible versions, the backend JavaScript needs to be shipped as ES6 module.
In the 12.x-dev branch, I added a rollup.js configuration - similar to the linked example. However, there is the additional challenge of combining this with TypeScript processing. My first tests with the
@rollup/plugin-typescript
look very promising: The ES6 build is working in v12 - the AMD build becomes generated, but has slightly wrong imports.I would like you to have a look into the build configuration and evaluate further steps.
It would be nice to have a working example for our other TYPO3 extensions which should support multiple versions as well.
Thanks!