import type { middleware as realMiddleware } from './middleware' ; let middleware = ( ) => ( ) => ( next ) => ( event ) => next ( event ) ; if ( process . env . NODE_ENV !== 'production' ) { middleware = require ( './middleware' ) . middleware ; } export { middleware } ;