-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all runtime helpers to individual files (#16495)
* Move all runtime helpers to individual files * Regenerate babel-runtime * Update fixtures * Make errors for bugs in helpers more helpful (and not "this.hub is undefined") * Wrap Babel 7 helpers in !BABEL_8_BREAKING * Skip failing decorators tests in Babel7/8 * Disable most CI * Skip failing Babel 7 old class helpers test in Babel 8 * Use latest decorators version in metadata test * Revert "Disable most CI" This reverts commit b98b0dc.
- Loading branch information
1 parent
5a7c827
commit db3e9a6
Showing
197 changed files
with
4,644 additions
and
4,475 deletions.
There are no files selected for viewing
22 changes: 8 additions & 14 deletions
22
packages/babel-cli/test/fixtures/babel-external-helpers/--whitelist/stdout.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
(function (global) { | ||
var babelHelpers = global.babelHelpers = {}; | ||
function _defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, babelHelpers.toPropertyKey(descriptor.key), descriptor); | ||
function _defineProperties(e, r) { | ||
for (var t = 0; t < r.length; t++) { | ||
var o = r[t]; | ||
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, babelHelpers.toPropertyKey(o.key), o); | ||
} | ||
} | ||
function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
function _createClass(e, r, t) { | ||
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | ||
writable: !1 | ||
}), e; | ||
} | ||
babelHelpers.createClass = _createClass; | ||
})(typeof global === "undefined" ? self : global); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.