Skip newlines around inline #__PURE__ annotations (#11133)

* Skip newlines around #__PURE__ annotations

* Update tests
This commit is contained in:
Nicolò Ribaudo
2020-02-13 19:16:33 +01:00
committed by GitHub
parent 3c6a8ae200
commit d21e2217d5
274 changed files with 382 additions and 1072 deletions

View File

@@ -1,9 +1,7 @@
import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
var _marked =
/*#__PURE__*/
_regeneratorRuntime.mark(giveWord);
var _marked = /*#__PURE__*/_regeneratorRuntime.mark(giveWord);
import foo, * as bar from "someModule";
export const myWord = _Symbol("abc");

View File

@@ -8,9 +8,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpe
var _foo = _interopRequireDefault(require("foo"));
let Example =
/*#__PURE__*/
function () {
let Example = /*#__PURE__*/function () {
function Example() {
(0, _classCallCheck2.default)(this, Example);
}

View File

@@ -1,8 +1,6 @@
var _regeneratorRuntime = require("@babel/runtime-corejs3/regenerator");
void
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
void /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0: