maikschneider / bw_icons

TYPO3 extensions that provides an icon picker for TCA and RTE.
GNU General Public License v2.0
1 stars 2 forks source link

New JavaScript build process (ES6 & AMD) #16

Closed maikschneider closed 5 months ago

maikschneider commented 1 year ago

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!

Jeggle-s commented 1 year ago

Hey @maikschneider.

maikschneider commented 5 months ago

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.