This repository has been archived by the owner on Oct 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 122
Scope-nested AMD defines not being named #228
Comments
These are named correctly by r.js, so since this sets the AMD precendent, it is fine to adapt the transformer to these cases. After some investigation, it seems r.js does the following transforms in https://github.com/jrburke/r.js/blob/master/build/jslib/transform.js:
Of the above the primary change seems to be that function argument closures of This is strange, but the ecosystems to be implicitly built around this rule, so we can try to match that. |
Released in 0.13.0. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Example scenario is toastr - https://github.com/32graham/jspm-toastr-bundle-problem.
We should use a create define method in the bundle that gives the name to the createDefine function itself. Then this will work with arbitrary nesting / define variable passing.
The text was updated successfully, but these errors were encountered: