RequireJS does not consider correct namespace prefix
My extension "mapping" uses these namespace prefixes in PHP "OliverHader\Mapping" (vendor, package).
However, the requireJS implementation in the PageRenderer ignores that and adds "TYPO3\CMS" as prefix.
The behaviour shall be the same as for PHP class files - the "\TYPO3\CMS" prefix is a special case for the Core only.
Updated by Daniel Siepmann over 7 years ago
The only thing I can implement at the moment is to remove the TYPO3 vender for external extensions. But I don't have any clue how to add the vendor for JS Files as it just exists inside PHP Files.
IF someone has an idea code it, or answer, so I can get into it.
Updated by Mathias Brodala about 6 years ago
You can manually add your prefix with the
render-preProcess like this:
Updated by Markus Klein about 6 years ago
- Status changed from New to Rejected
- Assignee deleted (
- Target version deleted (
- Complexity changed from medium to hard
- Sprint Focus deleted (
This is still private API of Core. To add you own modules you need to do it like this:
Making this API really versatile is a load of work and for sure no bug!
Updated by Frank Naegler about 6 years ago
Benni Mack I think the solution from Markus is a good example how to do it.
I think we need no change here, the default namespace is TYPO3\CMS\EXTKEY... If I need or want another prefix, I can register my own.
We don't know the VENDOR prefix, I have no idea how to resolve this VENDOR automatic.