Skip to content

Drop AMD suppression for dynamically loaded scripts #3480

@yurikuzn

Description

@yurikuzn

Since 9.2.0, we use script tags to dynamically load libraries. Before, we performed fetch and called Function.

The new approach does not allow to reliably suppress AMD with define.amd = false right before code execution. We drop this logic.

If a library stops from being loaded, the simple solution is to wrap the library code:

define.amd = false;
{LIBRARY_CODE}
define.amd = true;

Metadata

Metadata

Assignees

Labels

changeHeads-upfront-endConcerns only front-end

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions