Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-125746

Create a new OSGi module to support webpack federation module loading

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Labels:
      None

      Description

      Right now we have a little bit of code inside frontend-js-web to aid with webpack container bootstrapping (see https://github.com/liferay/liferay-portal/blob/769ee4eede8369fe97a188d8cadabee8222fad32/modules/apps/frontend-js/frontend-js-web/src/main/resources/META-INF/resources/liferay/webpack_federation.js).

       

      In addition to that, we will have several places where we invoke that code (see https://github.com/brianchandotcom/liferay-portal/blob/900268ad64c7ef255701253a5cacf0cd4fac45ca/modules/apps/portal-template/portal-template-react-renderer-impl/src/main/java/com/liferay/portal/template/react/renderer/internal/ReactRendererUtil.java#L131-L134 as an example) so we need a util class/component/whatever to hold that code.

       

      Given that there's no suitable place to put it (frontend-js-web doesn't export any API) we need to create a new module and move the webpack_federation.js file there and export the util/component/whatever to invoke it.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            ivan.zaera Ivan Zaera
            Engineering Assignee:
            SE Support
            Recent user:
            Brian Chan
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master