Skip to content

HAMUR_W1218: An import() with a computed specifier is not bundled

An import() with a computed specifier is not bundled. Warning HAMUR_W1218 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_W1218 import() with a computed specifier is not bundled; it loads at run time from the page's URL

Cause

An import() has a specifier that is computed, so the build cannot bundle it. It loads at run time from the page's URL.

Fix

Write the specifier as a string literal if you want it bundled.