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
Module bundler #495
Comments
This is something that es6-module-transpiler did with a "bundle" formatter. @eventualbuddha has been working on abstracting it out and I've been considering implementing it in the core. |
I think this should be definitely in the core, I'd be happy to help! |
Ping @eventualbuddha. How's your progress on extracting out the module bundler and would it be trivial to integrate? |
I hate to leave +1 comments, but this would eliminate my only current problem working with Babel. |
@developit It's a non-trivial request and it's not something I'm willing to maintain or plugin if it's going to be extremely hard which it likely is. Is there a reason you just can't use browserify or webpack? |
No, those are the avenues I'm exploring now. My build process seems to be inverted, though. It's possible the solution here is just to switch from Gulp to Browserify. |
You wouldn't be able to use npm modules with the proposed module bundler anyway. |
In my case I'm bundling because the result is a standalone library. I think a plugin would be ideal - I have been trying to bandaid a solution together by having Babel output AMD modules, which then get inlined and concatenated via amdclean/concat. If I come up with a solution, I'll probably wrap it up into a blog post or a boilerplate repo of some kind to help out any others looking to build standalone libraries via Babel. |
Great, that'd be awesome! I'm still interested in the feasibility of including a built-in module bundler but so far it's not looking too good. |
Closing this as it's currently out of scope and is unnecessary baggage. |
@developit (and anyone else who needs this feature) - @eventualbuddha and I have been working on an ES6 module bundler called esperanto which does exactly what you need (and generates more compact output than browserify/requirejs+amdclean). My own workflow is ES6 -> babel (blacklist |
One of the best features of Traceur that I'm missing here is the option for inline modules. As they describe it:
Doing this we don't have to use an AMD loader or Browserify to load the modules, which I think is a great option/feature.
The text was updated successfully, but these errors were encountered: