(content)
return IMPORT_DEFAULT.sub(repl, content)
Transpile the default import call.

    .. code-block:: javascript

        // before
        import something from "some/path"
        // after
        const something = require("some/path")[Symbol.for("default")]
Transpile the default import call.
Transpile the default import call .
def convert_default_import(content):
    """
    Transpile the default import call.

    .. code-block:: javascript

        // before
        import something from "some/path"
        // after
        const something = require("some/path")[Symbol.for("default")]
    """
    repl = r"""\g<space>const \g<identifier> = require(\g<path>)[Symbol.for("default")]"""
    return IMPORT_DEFAULT.sub(repl, content)
def convert_default_import ( content ) : repl = r"""\g<space>const \g<identifier> = require(\g<path>)[Symbol.for("default")]""" return IMPORT_DEFAULT . sub ( repl , content )