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

CommonJS style. #31

Open
tbranyen opened this issue Jul 26, 2013 · 1 comment
Open

CommonJS style. #31

tbranyen opened this issue Jul 26, 2013 · 1 comment

Comments

@tbranyen
Copy link
Member

At the very least app/app.js and app/router.js need to lose the define wrapper in this mode.

@SBoudrias
Copy link
Member

I agree, I'm thinking about writing a better handler for module style to limit repetition and being more predictable.

With Rocambole we should be able to target the content of the define() function and extract the content. In the custom templates, we could all write in CJS style and just wrap it in the Requirejs define (Although that won't work for classic AMD module style - So this still need thinking (Maybe a full Rocambole converter between styles - not sure yet if it's worth the overhead).

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

2 participants