My bad, just checked the package, there is build error for me if I put it in prepend
The bundler complains keyword “export” because amcharts4 shipped code in ESM format.
import * as am4core from "@amcharts/amcharts4/core";
import * as am4charts from "@amcharts/amcharts4/charts";
does not work either because cli-bundler uses esprima which doesn’t understand some of amcharts’s new js syntax (I guess amcharts compiled to quite latest JS syntax).
I tested with dumber bundler (The successor of cli-bundler, Aurelia 2 moved from cli-bundler to dumber). The above imports works with dumber.
For cli-bundler, the only option right now is to use CDN in your html head, that will give you the global vars.