Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Add a lighter build with no presets bundled (build them separately) #70

Open
Daniel15 opened this issue Nov 29, 2016 · 4 comments
Open

Comments

@Daniel15
Copy link
Member

Someone might want to use babel-standalone only for JSX transformation (for example), and not want to use any of the other Babel stuff. For this use-case, bundling every standard plugin and preset with babel-standalone is overkill. Instead, there could be a babel-standalone core JS file that only contains the core of Babel, and a preset-react file that contains just the React preset.

Investigate how much space is saved by building Babel with no plugins, and whether it's actually worth it. Perhaps most of the space is taken by the core of Babel, which would mean this is actually not worth doing.

@hzoo
Copy link
Member

hzoo commented Nov 30, 2016

Removing stuff from babel-core is it's own issue 😄

@Daniel15
Copy link
Member Author

@zoo babel-core is still lighter than babel-core + all presets though, right?

@nhuttrung
Copy link

I have same requirement: just core of Babel and preset-react.

How to customize package.json and/or index.js file?

Thanks

@Daniel15
Copy link
Member Author

@nhuttrung You could build your own version of babel-standalone that does not include any of the plugins or presets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants