# atma-loader-babel

> Babel (6to5) compiler for `atma-io`, `IncludeJS` and `atma-server`.

Latest version **1.1.30** (published 2017-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install atma-loader-babel
pnpm add atma-loader-babel
yarn add atma-loader-babel
bun add atma-loader-babel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.30 |
| Published | 2017-03-19 |
| First published | 2015-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alex Kit |
| Maintainers | tenbits |

## Links

- npm: https://www.npmjs.com/package/atma-loader-babel
- Repository: https://github.com/atmajs/atma-loader-babel
- Homepage: https://github.com/atmajs/atma-loader-babel#readme
- Issues: https://github.com/atmajs/atma-loader-babel/issues
- npm.io page: https://npm.io/package/atma-loader-babel

## Dependencies (4)

- [atma-utils](https://npm.io/package/atma-utils.md) ^0.1.6
- [babel-core](https://npm.io/package/babel-core.md) ^6.17.0
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.16.0
- [atma-loader-stacktrace](https://npm.io/package/atma-loader-stacktrace.md) ^0.1.1

## Recent versions

- 1.1.30 (latest) — 2017-03-19
- 1.1.29 — 2017-03-19
- 1.1.28 — 2016-12-22
- 1.1.27 — 2016-12-20
- 1.1.26 — 2016-10-07
- 1.0.26 — 2016-09-24
- 1.0.25 — 2016-09-24
- 1.0.24 — 2016-09-24
- 1.0.23 — 2016-09-24
- 1.0.22 — 2016-09-20
- 1.0.21 — 2016-03-05
- 1.0.20 — 2016-03-04
- 1.0.19 — 2015-02-18

## README

[Babel (6to5) Compiler](https://babeljs.io) (Atma Plugin)
-----
[![Build Status](https://travis-ci.org/atmajs/atma-loader-babel.png?branch=master)](https://travis-ci.org/atmajs/atma-loader-babel)

_with proper stacktrace support_

The Plugin extends:
- [`IncludeJS`](https://github.com/atmajs/IncludeJS) with a custom loader
- [`atma-io`](https://github.com/atmajs/atma-io) with a custom middleware to read ES6 files
- [`atma-server`](https://github.com/atmajs/atma-server) and [`Atma Toolkit`](https://github.com/atmajs/Atma.Toolkit) with a `HTTPHandler` to serve compiled sources (with **sourceMap** support)



##### How to use

###### Embed into the Project

+ `atma plugin install atma-loader-babel`

	This adds `atma-loader-babel` npm dependency and the `package.json` would look like:
    ```json
        {
            "dependencies": {
                "atma-loader-babel"
            },
            "atma": {
                "plugins": [
                    "atma-loader-babel"
                ],
                "settings": {
					"atma-loader-babel": {
						"extensions" : [ "es6" ]
						"babel": {} // babel-compiler options
					}
                }
            }
        }
    ```
+ That's all. Now, you are ready to use the 'next javascript' in your project

##### Quick Try

+ install atma: `$ npm install atma -g`
+ install plugin: `$ atma plugin install atma-loader-babel --save`
+ add `test.html` to the directory

    ```html
    <!DOCTYPE html>
    <script src='test.es6'></script>
    ```
+ add `test.es6`
    
    ```javascript
    setInterval(() => document.body.textContent += ".. itworks ..", 200);
    ```
+ start the server: `$ atma server`
+ open the browser: `http://localhost:5777/test.html`



----
The MIT License

---
_Source: https://npm.io/package/atma-loader-babel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
