-
Notifications
You must be signed in to change notification settings - Fork 83
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
Support requirejs #17
Comments
Was waiting for this haha. So thought a little about this and I think I want to avoid shims in all the files that support all the different types of requires, because I think it would add a large percentage of useless lines to the repo (making each file that larger to app users). So I'm think about a build step to duplicate logic into a /requirejs folder.. But that has the downside of doubling the initial download size for developers. I'll debate it out for a bit and come up with a solution this weekend? Are there any goto strategies for using common-js modules with requirejs? Ideas welcome. :) |
I would probably install
That way the requirejs files are built upon installing 101. Then they can setup their require.config to just point to |
As @jrf0110 points out, requirejs can consume and convert CommonJS modules, so you can keep authoring in CommonJS and let another tool post-process them to AMD. IMO, |
If there is an already officially supported work-around for using CommonJS modules with require.js. How much of a help is it to bundle it into this module? Should I just add instructions in the Readme? |
A little bit offtopic but I just moved to webpack and I'm really happier than require.js. Everything is better than require.js. Setup takes some time, but is doable and worth! |
In underscore.string we use browserify to build a version of it, which can be consumed in requireJs or as a standalone script (with a global variable). Checkout https://github.com/epeli/underscore.string/blob/master/gulpfile.js#L22. |
Closing this for now, bc original author is satisfied without this feature. Also, noone else has requested this. |
No description provided.
The text was updated successfully, but these errors were encountered: