npm suffers from ongoing security issues from vulnerabilities being injected into existing packages. Currently, there is no way to run a custom engine on Fargate without fetching that package from npm.
Allowing a locally bundled engine would solve this problem by only allowing trusted code.