When using with babel-register the intercept hook kills the registration for babel, so no babel compilation happens, resulting in error
of define !== 'function') {var define = require('amdefine')(module)}import ok
^^^^^^
SyntaxError: Unexpected reserved word