Get started with babel-core CDN
MIT licensed
Babel-core: essential JS, JSX transformation and parsing.
Tags:- 6to5
- babel
- classes
- const
- es6
- harmony
- let
- modules
- transpile
- transpiler
- var
Stable version
Copied!
How to start using babel-core CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with babel-core CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/babel-core/6.1.19/browser.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-preset-env/1.7.0/browser.min.js"></script>
</head>
<body>
<script type="text/babel">
// Transpile this arrow function using Babel-core and the env preset
const add = (a, b) => a + b;
// Transpile and execute the following ES6 code using Babel-core
const result = @babel('(function() { const x = 1; return x + 1; })()', {
presets: ['env']
}).code;
eval(result);
console.log(add(2, 3)); // Output: 5
</script>
</body>
</html>
Copied!
Copied!
All versions
4.0.1
4.0.2
4.1.1
4.2.0
4.2.1
4.3.0
4.4.1
4.4.2
4.4.3
4.4.4
4.4.5
4.4.6
4.5.0
4.5.1
4.5.2
4.5.3
4.5.4
4.5.5
4.6.0
4.6.1
4.6.3
4.6.4
4.6.5
4.6.6
4.7.0
4.7.1
4.7.10
4.7.11
4.7.12
4.7.13
4.7.14
4.7.15
4.7.16
4.7.2
4.7.3
4.7.4
4.7.5
4.7.6
4.7.7
4.7.8
4.7.9
5.0.0
5.0.0-beta2
5.0.0-beta3
5.0.0-beta4
5.0.1
5.0.10
5.0.11
5.0.12
5.0.13
5.0.2
5.0.3
5.0.4
5.0.5
5.0.6
5.0.7
5.0.8
5.0.9
5.1.0
5.1.1
5.1.10
5.1.11
5.1.12
5.1.13
5.1.2
5.1.3
5.1.4
5.1.5
5.1.6
5.1.7
5.1.8
5.1.9
5.2.0
5.2.1
5.2.10
5.2.11
5.2.12
5.2.13
5.2.14
5.2.15
5.2.16
5.2.17
5.2.2
5.2.3
5.2.4
5.2.5
5.2.6
5.2.7
5.2.9
5.3.0
5.3.1
5.3.2
5.3.3
5.4.0
5.4.1
5.4.2
5.4.3
5.4.4
5.4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