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

Commit

Permalink
6.4.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel15 committed Jan 18, 2016
1 parent 45a7b33 commit 15fbbb0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ babel-standalone
babel-standalone is a standalone build of Babel for use in non-Node.js environments, including browsers. It's bundled with all the standard Babel plugins and presets.

But why?!
---------
=========

It's true that using Babel through Webpack, Browserify or Gulp should be sufficient for most use cases. However, there are some valid use cases for babel-standalone:

Expand All @@ -14,7 +14,7 @@ It's true that using Babel through Webpack, Browserify or Gulp should be suffici
- Integration of Babel into a non-Node.js environment ([ReactJS.NET](http://reactjs.net/), [ruby-babel-transpiler](https://github.com/babel/ruby-babel-transpiler), [php-babel-transpiler](https://github.com/talyssonoc/php-babel-transpiler), etc).

Installation
------------
============

babel-standalone can be installed via NPM:
```
Expand All @@ -24,7 +24,7 @@ npm install --save babel-standalone
Or grab `babel.js` and/or `babel.min.js` from the [GitHub releases page](https://github.com/Daniel15/babel-standalone/releases)

Usage
-----
=====

Load `babel.js` or `babel.min.js` in your environment. This will expose [Babel's API](http://babeljs.io/docs/usage/api/) in a `Babel` object:

Expand All @@ -34,3 +34,15 @@ var output = Babel.transform(input, { presets: ['es2015'] }).code;
```

Note that `.babelrc` doesn't work in babel-standalone, as no file system access is available. The presets and/or plugins to use **must** be specified in the options passed to `Babel.transform`.

Changelog
=========
6.4.4 - 17th January 2016
-------------------------
- Made version number consistent with Babel's.
- [#2](https://github.com/Daniel15/babel-standalone/issues/2) - Added
2015-loose preset.

1.0 - 5th December 2015
-----------------------
- Initial release.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-standalone",
"version": "6.4.4-dev",
"version": "6.4.4",
"description": "Standalone build of Babel for use in non-Node.js environments. Similar to the (now deprecacted) babel-browser",
"main": "babel.js",
"repository": {
Expand Down

0 comments on commit 15fbbb0

Please sign in to comment.