Put the API behind a feature flag
Disable the API when building the extension

It's not necessary at all to load this module when all that is needed
is to bundle some assets and pages together.