Skip to content
This repository was archived by the owner on Oct 17, 2020. It is now read-only.

Limitations of portlet bundling

Greg Hurrell edited this page Oct 16, 2020 · 2 revisions

⚠️ The contents of this wiki have been migrated to the liferay/liferay-frontend-projects monorepo and more specifically to the to the maintenance/projects/js-toolkit/docs directory. Development and updates will continue there, and this repo will be archived (ie. switched to read-only mode).


The JS Toolkit bundler tries to behave as much as it can like webpack

Dynamic require/import are not supported

This comes from issue 588.

The problem is that the current architecture cannot resolve dynamic modules because of limitations when the server analyzes the dependency graph and because of the use of the AMD specification which executes the define() call once and for all, making it it impossible to make a module depend on different dependencies depending on runtime values.

Clone this wiki locally