Check whether require.extensions is available before modifying it
Check whether require.extensions is available before modifying it

The ometa output module relies transitively on api.js. In webpack
environments, require or require.extension may not be defined.
This results in failure to load api.js inside webpack.

This change fixes the problem.

Page-/ometa-js