From 7dd8220f77908e3a58b4f01f8e1df34da2bc1bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Thu, 3 Jun 2021 01:33:25 +0200 Subject: [PATCH] Misc fixes --- packages/babel-cli/test/index.js | 1 + packages/babel-helper-plugin-test-runner/src/index.js | 6 +++--- .../babel-helper-transform-fixture-test-runner/src/index.ts | 6 +++--- .../src/index.js | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/babel-cli/test/index.js b/packages/babel-cli/test/index.js index 939c1706caaf..964556c17697 100644 --- a/packages/babel-cli/test/index.js +++ b/packages/babel-cli/test/index.js @@ -7,6 +7,7 @@ import path from "path"; import fs from "fs"; import { fileURLToPath } from "url"; import { createRequire } from "module"; +import { jest } from "@jest/globals"; import { chmod } from "../lib/babel/util"; diff --git a/packages/babel-helper-plugin-test-runner/src/index.js b/packages/babel-helper-plugin-test-runner/src/index.js index 03064b7a9f92..01fd33a86de0 100644 --- a/packages/babel-helper-plugin-test-runner/src/index.js +++ b/packages/babel-helper-plugin-test-runner/src/index.js @@ -3,9 +3,9 @@ import path from "path"; import { URL } from "url"; // Workaround for https://github.com/facebook/jest/issues/11434 -import "../../babel-helper-create-class-features-plugin/lib/index"; -import "../../babel-template/lib/index"; -import "../../babel-core/lib/index"; +import "../../babel-helper-create-class-features-plugin/lib/index.js"; +import "../../babel-template/lib/index.js"; +import "../../babel-core/lib/index.js"; export default function (loc) { if (!process.env.BABEL_8_BREAKING) { diff --git a/packages/babel-helper-transform-fixture-test-runner/src/index.ts b/packages/babel-helper-transform-fixture-test-runner/src/index.ts index 06a1e010ba2e..9e5d793e7c0f 100644 --- a/packages/babel-helper-transform-fixture-test-runner/src/index.ts +++ b/packages/babel-helper-transform-fixture-test-runner/src/index.ts @@ -17,9 +17,9 @@ import { fileURLToPath } from "url"; import { jest } from "@jest/globals"; // Workaround for https://github.com/facebook/jest/issues/11434 -import "../../babel-helper-create-class-features-plugin/lib/index"; -import "../../babel-template/lib/index"; -import "../../babel-core/lib/index"; +import "../../babel-helper-create-class-features-plugin/lib/index.js"; +import "../../babel-template/lib/index.js"; +import "../../babel-core/lib/index.js"; import { createRequire } from "module"; const require = createRequire(import.meta.url); diff --git a/packages/babel-plugin-transform-react-jsx-development/src/index.js b/packages/babel-plugin-transform-react-jsx-development/src/index.js index f0418c29572d..5273b9f25dce 100644 --- a/packages/babel-plugin-transform-react-jsx-development/src/index.js +++ b/packages/babel-plugin-transform-react-jsx-development/src/index.js @@ -1,3 +1,3 @@ /* eslint-disable @babel/development/plugin-name */ -export { default } from "@babel/plugin-transform-react-jsx/lib/development"; +export { default } from "@babel/plugin-transform-react-jsx/lib/development.js";