Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

add AMD support to --standalone #139

Closed
tj opened this Issue · 6 comments

3 participants

@tj
tj commented

No description provided.

@wilmoore

Are you thinking, add a secondary option like --module-amd or simply have --standalone build a UMD-like wrapper?

@tj
tj commented

just part of --standalone so it automagically works with other envs, global / commonjs / amd etc

@wilmoore

I've been spiking on this trying to make it more concise: https://gist.github.com/3880415

I'm sure it can be improved upon greatly.

@ForbesLindesay

@wilmoore not quite sure what that is? It looks like it's got underscore stuff in it? Not sure what it has to do with this.

@wilmoore

It's just an example of how one would do imports, exports, and module definition across AMD, NodeJS, and Browser Globals. The underscore import is just a contrived example. Some modules won't have any dependencies, some will have more than one.

I am currently using this in a project where I can't convince the rest of the team to adopt "component" (we will be using RequireJS), but we have a ton of code as globals so we need to incrementally move to modules but browser globals shouldn't break just yet.

@tj tj closed this in b75d03e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.