Dynamic import() does not work

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.5.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Not Needed

      Users should be able to use import('foo'), but that doesn’t work right now because the async rewriter doesn’t know that literal import calls have special meaning. We can apply the same logic that we use for eval here to work around this.

      This only solves the problem partially – the linked Node.js ticket refers to segfaults that happen when one input line in the REPL defines a function that calls import() which is then called again later.

            Assignee:
            Anna Henningsen
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: