diff --git a/README.md b/README.md index a61ef8f..710878f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Installation There are several ways to get a copy of babel-standalone. Pick whichever one you like: -- Use it via CDNJS: https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.10.3/babel.min.js. This is a simple way to embed it on a webpage without having to do any other setup. +- Use it via CDNJS: https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.14.0/babel.min.js. This is a simple way to embed it on a webpage without having to do any other setup. - Install via Bower: `bower install babel-standalone` - Install via NPM: `npm install --save babel-standalone` - Manually grab `babel.js` and/or `babel.min.js` from the [GitHub releases page](https://github.com/Daniel15/babel-standalone/releases). Every release includes these files. @@ -38,7 +38,7 @@ When loaded in a browser, babel-standalone will automatically compile and execut ```html
- + ``` +You can use the `data-plugins` and `data-presets` attributes to specify the Babel plugins/presets to use: +```html + +``` + 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`. diff --git a/package.json b/package.json index 3ae68f8..275288c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "babel-standalone", - "version": "6.13.2", + "version": "6.14.0", "description": "Standalone build of Babel for use in non-Node.js environments. Similar to the (now deprecated) babel-browser", "main": "babel.js", "scripts": {