mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Move babel-standalone into main Babel repo * Don't try to gather coverage data for babel-standalone test * Fix JSX test * Always use npm v4 on Travis * Include pull request number as part of version number * Cherry-picking https://github.com/babel/babel-standalone/commit/5721b2e43e835183bcd417ab225fde23b541a595 Remove deprecated packages to prevent Babel v6 files from being pulled in * Use RootMostResolvePlugin to dedupe packages * Avoid destructuring so the build works on archaic Node.js versions * - Fix version number - Remove Babili packages (they should be in separate babili-standalone) - Remove deprecated syntax-class-constructor-call * - Remove more Babili packages - Remove `babel-plugin-inline-replace-variables` for now as it pulls in Babel 6 stuff * Actually remove reference to babel-plugin-undeclared-variables-check * Add Babylon to root package.json so we hoist the right version. This fixes the tests.
9 lines
211 B
JavaScript
9 lines
211 B
JavaScript
/* global Babel */
|
|
|
|
const doStuff = () => {
|
|
const name = "world";
|
|
document.getElementById("output").innerHTML = `Hello ${name}`;
|
|
document.getElementById("version").innerHTML = Babel.version;
|
|
};
|
|
doStuff();
|