Skip to content

Add AMD module ID support #19

@andvgal

Description

@andvgal

At the moment, pure-cjs generates anonymous AMD modules, event when "exports" is set.

  1. However, global and amd type modules are not necessary references by the same identifier from foreign code. That is the reason we should add a new parameter like "amdId". Example:
    • global: the module may be referenced as "$shortcut"
    • amd: the same module may be referenced as "project-part"
  2. If "amdId" options is set, pure-cjs should use it as the first parameter in the "define( amdId, deps, factory )" statement

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions