Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73132

AMD modules do not transpile properly if there is no export or import

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0, 4.1
    • None
    • JavaScript
    • None

    Description

      The transform plugin that we use does not transform to AMD if there are no export, import, or define. That's by design (see https://www.npmjs.com/package/babel-plugin-transform-es2015-modules-amd-lazy).

      We do have a need to convert modules which do not import, or export (or have existing define) statements so we need to find an alternative.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dobedobedoh Andrew Lyons
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: