make tweditor use commonjs style