babel / babel-standalone

:video_game: Now located in the Babel repo! Standalone build of Babel for use in non-Node.js environments, including browsers.
https://github.com/babel/babel/tree/master/packages/babel-standalone
MIT License
819 stars 121 forks source link

Can you export buildExternalHelpers for rollup-babel-standalone ? #87

Closed jetiny closed 7 years ago

jetiny commented 7 years ago
export const availablePlugins = {};
export const availablePresets = {};
// export buildExternalHelpers
export const buildExternalHelpers = Babel.buildExternalHelpers;
Daniel15 commented 7 years ago

What is "rollup-babel-standalone"?

This should be easy to do, feel free to send a pull request.

jetiny commented 7 years ago

Thanks. rollup website

loganfsmyth commented 7 years ago

This seems like a reasonable thing to expose. The question above isn't asking what Rollup is, it's asking how that ties to standalone. I don't get how you'd combine Rollup and babel-standalone. The point of babel-standalone is non-Node usage, and Rollup is entirely Node.

jetiny commented 7 years ago

It's for node only, For some reasons we need to use babel-standalone with rollup-plugin-babel, but it need buildExternalHelpers

Daniel15 commented 7 years ago

Added in #88

loganfsmyth commented 7 years ago

@jetiny There's no benefit to using babel-standalone with Rollup. If you're finding that necessary, I'd recommend exploring why that is, since you're now reinventing existing tooling for Rollup.

jetiny commented 7 years ago

Out CI is too slow, even if we use yarn and a private cnpm registry, we must cut down the dependencies of npm packages