[build] convert external dependencies (missing dependencies) into Rollup errors instead of warnings.

Rollup by default treats missing dependencies as "external" and will only output a warning to the console instead of an error (working as intended).

We can make it throw an error for our use case.

See: rollup/rollup#1906 (comment)