Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AMD module ID support #19

Open
andvgal opened this issue Dec 28, 2014 · 0 comments
Open

Add AMD module ID support #19

andvgal opened this issue Dec 28, 2014 · 0 comments

Comments

@andvgal
Copy link

andvgal commented Dec 28, 2014

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant