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

Support preset options for the bundled presets #49

Closed
Jessidhia opened this issue Aug 25, 2016 · 6 comments
Closed

Support preset options for the bundled presets #49

Jessidhia opened this issue Aug 25, 2016 · 6 comments

Comments

@Jessidhia
Copy link
Member

Right now, if, for example, [ [ "es2015", {} ] ] is given to plain babel-standalone in a browser, it causes babel to error out as it Couldn't find preset "es2015" relative to directory ".".

@Daniel15
Copy link
Member

Should be straightforward to do, just need to modify the code at https://github.com/Daniel15/babel-standalone/blob/master/src/index.js#L25 to handle the value being an array.

@taion
Copy link
Contributor

taion commented Aug 25, 2016

This should probably come with bumping the minimum Babel version to 6.13 in package.json.

@Jessidhia
Copy link
Member Author

Wrote #50 to implement this; also added support for passing options to plugins.

The package.json already requests babel-core and babel-preset-es2015 ^6.13.2.

@taion
Copy link
Contributor

taion commented Aug 25, 2016

Oh, neat, didn't see that package.json got bumped.

@Daniel15
Copy link
Member

Yeah I've got a somewhat-automated process for bumping versions in package.json and automatically releasing new builds as long as the unit tests pass. Haven't committed all the code for that yet though. One thing I should do is change the package.json to use exact package versions rather than ranges, as I always want these builds to be repeatable and use the exact same version of Babel.

@Daniel15
Copy link
Member

Added in #50, thanks @Kovensky!

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

No branches or pull requests

3 participants