<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay JS Portlet Extender / js_loader_modules / Angular</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112006611" />
  <subtitle>Liferay JS Portlet Extender / js_loader_modules / Angular</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112006611</id>
  <updated>2026-04-04T14:20:53Z</updated>
  <dc:date>2026-04-04T14:20:53Z</dc:date>
  <entry>
    <title>RE: Liferay JS Portlet Extender / js_loader_modules / Angular</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112014466" />
    <author>
      <name>Iván Zaera Avellón</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112014466</id>
    <updated>2019-01-15T07:46:28Z</updated>
    <published>2019-01-15T07:46:28Z</published>
    <summary type="html">&lt;p&gt;Hi Armando:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;1) We need to release version 1.1.0 of the extender. Meanwhile,
  generate your projects without settings configuration support which is
  the culprit of the need for 1.1.0 (see &lt;a
    href="https://github.com/liferay/liferay-npm-build-tools/wiki/.npmbundlerrc-file-reference#create-jarfeaturesjs-extender"&gt;this
  link&lt;/a&gt; on how the bundler decides which version to require).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;2) We are already working in a big change in the loader to avoid the
  need for the js_loader_modules file. All module resolutions will take
  place in the server so that the loader doesn't need to know anything
  about the modules that are installed in the served. However, that will
  take time and may not be available in older versions of the portal so,
  in the meantime, we recommend to activate the GZipFilter so that the
  js_loader_modules is compressed (it will be highly compressed because
  it's mainly redundant text). That should make the trick until the
  other feature arrives.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hope that helps :-),&lt;/p&gt;
&lt;p&gt;Ivan&lt;/p&gt;</summary>
    <dc:creator>Iván Zaera Avellón</dc:creator>
    <dc:date>2019-01-15T07:46:28Z</dc:date>
  </entry>
  <entry>
    <title>Liferay JS Portlet Extender / js_loader_modules / Angular</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112006610" />
    <author>
      <name>Armando Del Rosario</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112006610</id>
    <updated>2019-01-14T18:30:38Z</updated>
    <published>2019-01-14T18:30:38Z</published>
    <summary type="html">&lt;p&gt;Hi all...&lt;/p&gt;
&lt;p&gt;Im trying to follow the Angular Deduplication examples and got a few questions....&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;u&gt;
    &lt;strong&gt;
      &lt;em&gt;Case 1:&lt;/em&gt;&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;The Context:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Using the yeoman &lt;a
  href="https://www.npmjs.com/package/generator-liferay-bundle"&gt;generator-liferay-bundle&lt;/a&gt;,
  create two angular portlet with deduplication mode (Shared packages
  bundle a.k.a. provider &amp;amp; Angular based portlet a.k.a consumer).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The consumer portlet don't start because it ask for osgi com.liferay.frontend.js.portlet.extender@1.1.0&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;There is a &lt;a
    href="https://web.liferay.com/es/marketplace/-/mp/application/115543020"&gt;Liferay
    JS Portlet Extender&lt;/a&gt; 1.0.0 in LPKG file at the marketplace
  (inside it, is the 1.0.5) &lt;img alt="surprise" height="23"
    src="https://community.liferay.com/o/frontend-editor-ckeditor-web/ckeditor/plugins/smiley/images/omg_smile.png"
    title="surprise" width="23" /&gt;&lt;/p&gt;
&lt;p&gt;At the &lt;a
    href="https://mvnrepository.com/artifact/com.liferay/com.liferay.frontend.js.portlet.extender/1.0.6"&gt;maven
    repo its the 1.0.6&lt;/a&gt;, so i downloaded and installed that one&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;The question:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Do i need the 1.1.0 version, and if so... where can i find it?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Case 2:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;All the npm dependencies are registered on the &lt;em&gt;
    &lt;strong&gt;js_loader_modules&lt;/strong&gt;, this file its quite big, &lt;/em&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;a
    href="https://issues.liferay.com/browse/LPS-82808?attachmentViewMode=list"&gt;i
    saw a resolve issue about it&lt;/a&gt;, and install the FP6&lt;/p&gt;
&lt;p&gt;an the results (attached npmDeduplicationMinifiedOutTheBox.PNG &amp;amp; npmDeduplicationSample.PNG):&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;A consumer portlet with a minified version of js_loader_module with
  register dependencies (Angular) on it from provider module.&lt;/p&gt;
&lt;p&gt;Browser transfer info of js_loader_module: 2mb@1.55s  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;The question:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;How to control the size of &lt;em&gt;
    &lt;strong&gt;js_loader_modules &lt;/strong&gt;when we register common
    dependencies and it gets even bigger?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Im using:&lt;/p&gt;
&lt;p&gt;DXP 7.1 with FP6&lt;/p&gt;
&lt;p&gt;Tomcat bundle with hsql&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;</summary>
    <dc:creator>Armando Del Rosario</dc:creator>
    <dc:date>2019-01-14T18:30:38Z</dc:date>
  </entry>
</feed>
