now passing --module 'commonjs' flag to compiler