[TASK] Update rollup to 4.17.2
Newer rollup major versions feature optimizations in build output. The rollup source files are now natively parsed as ESM modules by NodeJS. Earlier rollup versions implicitly transpiled ESM to CJS and allowed a mixture of ESM and CJS imports (both `import` statements and `require()` calls) in one module. With the switch to ESM-only modules we now make use of `createRequire` utility method when node-require resolution is needed for CJS path lookups. Since our main project (Build/) is still in CJS mode by default (for grunt), we apply a sub-project module type overwrite for the Build/rollup/ folder via Build/rollup/package.json to ensure rollup configuration runs in native ESM mode. See https://nodejs.org/docs/latest-v18.x/api/packages.html > Node.js will treat the following as ES modules when passed to node as > the initial input, or when referenced by import statements or import() > expressions: > […] > * Files with a .js extension when the nearest parent package.json file > contains a top-level "type" field with a value of "module". Executed commands: npm install --save-dev \ rollup@^4.17.2 \ @rollup/plugin-commonjs@^25.0.7 \ @rollup/plugin-node-resolve@^15.2.3 \ @rollup/plugin-replace@^5.0.5 npm run build -- exec:rollup Resolves: #103775 Releases: main, 12.4 Change-Id: I6793bd9233b2907ce5ed06d68c7008b349237360 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84102 Tested-by:core-ci <typo3@b13.com> Reviewed-by:
Andreas Kienast <a.fernandez@scripting-base.de> Tested-by:
Andreas Kienast <a.fernandez@scripting-base.de> Tested-by:
Benjamin Franzke <ben@bnf.dev> Reviewed-by:
Benjamin Franzke <ben@bnf.dev>
Showing
- Build/Gruntfile.js 1 addition, 1 deletionBuild/Gruntfile.js
- Build/package-lock.json 171 additions, 253 deletionsBuild/package-lock.json
- Build/package.json 4 additions, 4 deletionsBuild/package.json
- Build/rollup.config.js 0 additions, 13 deletionsBuild/rollup.config.js
- Build/rollup/ckeditor.js 6 additions, 5 deletionsBuild/rollup/ckeditor.js
- Build/rollup/config.js 13 additions, 0 deletionsBuild/rollup/config.js
- Build/rollup/lodash.js 2 additions, 0 deletionsBuild/rollup/lodash.js
- Build/rollup/package.json 3 additions, 0 deletionsBuild/rollup/package.json
- Build/rollup/select-pure.js 2 additions, 0 deletionsBuild/rollup/select-pure.js
- typo3/sysext/core/Resources/Public/JavaScript/Contrib/bootstrap.js 1 addition, 1 deletion...ext/core/Resources/Public/JavaScript/Contrib/bootstrap.js
- typo3/sysext/dashboard/Resources/Public/JavaScript/Contrib/chartjs.js 3 additions, 3 deletions.../dashboard/Resources/Public/JavaScript/Contrib/chartjs.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-basic-styles.js 1 addition, 1 deletion...ources/Public/Contrib/@ckeditor/ckeditor5-basic-styles.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-block-quote.js 1 addition, 1 deletion...sources/Public/Contrib/@ckeditor/ckeditor5-block-quote.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-clipboard.js 3 additions, 2 deletions...Resources/Public/Contrib/@ckeditor/ckeditor5-clipboard.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-code-block.js 1 addition, 1 deletion...esources/Public/Contrib/@ckeditor/ckeditor5-code-block.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-editor-classic.js 1 addition, 1 deletion...rces/Public/Contrib/@ckeditor/ckeditor5-editor-classic.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-engine.js 16 additions, 16 deletions...or/Resources/Public/Contrib/@ckeditor/ckeditor5-engine.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-font.js 1 addition, 1 deletion...itor/Resources/Public/Contrib/@ckeditor/ckeditor5-font.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-heading.js 1 addition, 1 deletion...r/Resources/Public/Contrib/@ckeditor/ckeditor5-heading.js
- typo3/sysext/rte_ckeditor/Resources/Public/Contrib/@ckeditor/ckeditor5-horizontal-line.js 1 addition, 1 deletion...ces/Public/Contrib/@ckeditor/ckeditor5-horizontal-line.js
Please register or sign in to comment