Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { NodePath, types as t } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const noDocumentAll = api.assumption("noDocumentAll") ?? false;
const pureGetters = api.assumption("pureGetters") ?? false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
toRanges,
} from "./util.ts";


function buildFieldsReplacement(
fields: t.ClassProperty[],
scope: Scope,
Expand All @@ -33,6 +34,7 @@ function buildFieldsReplacement(

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const setPublicClassFields = api.assumption("setPublicClassFields");

Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-external-helpers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface Options {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const { helperVersion = "7.0.0-beta.0", whitelist = false } = options;

Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-proposal-decorators/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type { Options };

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

// Options are validated in @babel/plugin-syntax-decorators
if (!process.env.BABEL_8_BREAKING) {
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-proposal-do-expressions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "proposal-do-expressions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { types as t } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "proposal-export-default-from",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-proposal-function-bind/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { types as t, type Scope } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

function getTempId(scope: Scope) {
let id = scope.path.getData("functionBind");
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-proposal-function-sent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { types as t, type Visitor } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const isFunctionSent = (node: t.MetaProperty) =>
t.isIdentifier(node.meta, { name: "function" }) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import syntaxImportAttributes from "@babel/plugin-syntax-import-attributes";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "proposal-import-attributes-to-assertions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { types as t, type Scope } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

/**
* a function to figure out if a call expression has
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const visitorsPerProposal = {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const { proposal } = options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type ImportCache = WeakMap<t.Program, Cache>;

export default declare<State>((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const polyfillModuleName = v.validateStringOption(
"polyfillModuleName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { types as t } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "proposal-throw-expressions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-async-do-expressions",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-decorators/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface Options {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

let { version } = options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-destructuring-private",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-do-expressions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-do-expressions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-explicit-resource-management",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-export-default-from",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-flow/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface Options {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

// When enabled and plugins includes flow, all files should be parsed as if
// the @flow pragma was provided.
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-function-bind/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-function-bind",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-function-sent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-function-sent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const isPlugin = (plugin: string | [string, object], name: string) =>
name === "plugin" || (Array.isArray(plugin) && plugin[0] === "plugin");
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-import-defer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-import-defer",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-jsx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-jsx",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-module-blocks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-module-blocks",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-partial-application",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Options {

export default declare((api, { proposal, topicToken }: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

if (typeof proposal !== "string" || !PIPELINE_PROPOSALS.includes(proposal)) {
const proposalList = PIPELINE_PROPOSALS.map(p => `"${p}"`).join(", ");
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-record-and-tuple/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface Options {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');
if (process.env.BABEL_8_BREAKING) {
if (options.syntaxType === "bar") {
throw new Error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "syntax-throw-expressions",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-syntax-typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface Options {

export default declare((api, opts: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const { disallowAmbiguousJSXLike, dts } = opts;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface Options {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const noNewArrows = api.assumption("noNewArrows") ?? !options.spec;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import rewriteForAwait from "./for-await.ts";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const yieldStarVisitor = visitors.environmentVisitor<PluginPass>({
ArrowFunctionExpression(path) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type State = {

export default declare<State>((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const { method, module } = options;
// Todo(BABEL 8): Consider default it to false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { types as t, type NodePath } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

function transformStatementList(
parentPath: NodePath,
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-block-scoping/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface Options {

export default declare((api, opts: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const { throwIfClosureRequired = false, tdz: tdzEnabled = false } = opts;
if (typeof throwIfClosureRequired !== "boolean") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Options {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return createClassFeaturePlugin({
name: "transform-class-properties",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-classes/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface Options {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const { loose = false } = options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if (!process.env.BABEL_8_BREAKING) {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const setComputedProperties =
api.assumption("setComputedProperties") ?? options.loose;
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-destructuring/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface Options {

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const { useBuiltIns = false } = options;

Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-dotall-regex/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return createRegExpFeaturePlugin({
name: "transform-dotall-regex",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function getName(

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "transform-duplicate-keys",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ bundler handle dynamic imports.

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "transform-dynamic-import",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { types as t } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "transform-exponentiation-operator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { types as t } from "@babel/core";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

return {
name: "transform-export-namespace-from",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-flow-comments/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import generateCode from "@babel/generator";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

function commentFromString(comment: string | t.Comment): t.Comment {
return typeof comment === "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface Options {

export default declare((api, opts: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

const FLOW_DIRECTIVE = /@flow(?:\s+(?:strict(?:-local)?|weak))?|@noflow/;

Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-for-of/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function buildLoopBody(

export default declare((api, options: Options) => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');

{
const { assumeArray, allowArrayLike, loose } = options;
Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-function-name/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { declare } from "@babel/helper-plugin-utils";

export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
console.log('REQUIRED VERSION CHECK');
const supportUnicodeId = !isRequired(
"transform-unicode-escapes",
api.targets(),
Expand Down
Loading
Loading