@teambit/compilation.modules.babel-compiler
Advanced tools
Comparing version 0.0.140 to 0.0.141
@@ -38,3 +38,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.replaceFileExtToJs = exports.isFileSupported = exports.transpileFilePathAsync = exports.transpileFileContent = void 0; | ||
exports.transpileFileContent = transpileFileContent; | ||
exports.transpileFilePathAsync = transpileFilePathAsync; | ||
exports.isFileSupported = isFileSupported; | ||
exports.replaceFileExtToJs = replaceFileExtToJs; | ||
const babel = __importStar(require("@babel/core")); | ||
@@ -74,5 +77,4 @@ const path_1 = __importDefault(require("path")); | ||
} | ||
exports.transpileFileContent = transpileFileContent; | ||
function transpileFilePathAsync(filePath, options, babelModule = babel) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
function transpileFilePathAsync(filePath_1, options_1) { | ||
return __awaiter(this, arguments, void 0, function* (filePath, options, babelModule = babel) { | ||
if (!isFileSupported(filePath)) { | ||
@@ -100,3 +102,2 @@ return null; | ||
} | ||
exports.transpileFilePathAsync = transpileFilePathAsync; | ||
/** | ||
@@ -120,3 +121,2 @@ * if it's not false, it searches for config files, which is probably not the expected behavior | ||
} | ||
exports.isFileSupported = isFileSupported; | ||
function replaceFileExtToJs(filePath) { | ||
@@ -128,3 +128,2 @@ if (!isFileSupported(filePath)) | ||
} | ||
exports.replaceFileExtToJs = replaceFileExtToJs; | ||
//# sourceMappingURL=babel-compiler.js.map |
{ | ||
"name": "@teambit/compilation.modules.babel-compiler", | ||
"version": "0.0.140", | ||
"version": "0.0.141", | ||
"homepage": "https://bit.cloud/teambit/compilation/modules/babel-compiler", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "modules/babel-compiler", | ||
"version": "0.0.140" | ||
"version": "0.0.141" | ||
}, | ||
@@ -20,4 +20,3 @@ "dependencies": { | ||
"@types/jest": "26.0.20", | ||
"@types/node": "12.20.4", | ||
"@babel/runtime": "7.20.0" | ||
"@types/node": "22.10.5" | ||
}, | ||
@@ -24,0 +23,0 @@ "peerDependencies": {}, |
Sorry, the diff of this file is not supported yet
5
19135
330