Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17151

Add support for extending the global RequireJS configuration available on page load

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.1
    • Fix Version/s: 12.3-rc-1
    • Component/s: Flamingo Skin
    • Labels:
      None
    • Development Priority:
      High
    • Difficulty:
      Medium
    • Similar issues:

      Description

      ATM the global RequireJS configuration available on page load is defined in javascript.vm. The advantage of this global config is that it allows you to use a RequireJS module knowing only it's id (you don't need to know the path).

      It would be nice for an XWiki extension to be able to extend this global configuration by describing the RequireJS modules it provides. This way, other extensions can use these RequireJS modules without having to depend tightly on the extension that provides them.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: