new StringReader( "\n" ),
new StringReader( "module.exports = " + getPrimaryRequirePath().replaceAll("/", ".") + ";" ),
new StringReader( requireAllInvocation ),
new StringReader(CommonJsSourceModule.COMMONJS_DEFINE_BLOCK_FOOTER),
};
return new ConcatReader( readers );
}
catch (ModelOperationException e) {
throw new IOException("Unable to create the SourceModule reader", e);
}
}