wrap a commonjs module to module-wrapping/module-transport style