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

Improve the "cjsTranslate" option #772

Open
rubennorte opened this issue Jan 28, 2015 · 0 comments
Open

Improve the "cjsTranslate" option #772

rubennorte opened this issue Jan 28, 2015 · 0 comments

Comments

@rubennorte
Copy link

If I got it right, the current behavior of the option cjsTranslate is to convert all the js files found in the directory. In projects with lots of external dependencies this option makes the optimization of modules too slow.

I think it would be nice to extend this options with more possible values:

{
  cjsTranslate: true, // current behavior
  cjsTranslate: false, // current behavior
  cjsTranslate: 'all', // all modules, like "cjsTranslate: true"
  cjsTranslate: 'optimized' // only optimized modules and its dependencies
  cjsTranslate: ['main.js', 'cjsmodules'] // list of files or directories to be converted
}
@rubennorte rubennorte changed the title Improve the option "cjsTranslate" Improve the "cjsTranslate" option Jan 28, 2015
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