Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FogelAI committed May 21, 2024
1 parent 1c2a0b2 commit ce2e850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/jest/babelTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const babelJest = require("babel-jest").default;

module.exports = {
process(sourceText, sourcePath, options) {
const alias = options.config.moduleNameMapper;
const alias = options?.config?.moduleNameMapper;
const babelTransformer = babelJest.createTransformer({
presets: [["@babel/preset-react"], ["@babel/preset-env"]],
plugins: [["transform-barrels", { jestAlias: alias }]],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "babel-plugin-transform-barrels",
"version": "1.0.13",
"description": "This Babel plugin transforms indirect imports through a barrel file (index.js) into direct imports.",
"description": "A Babel plugin that transforms indirect imports through a barrel file (index.js) into direct imports.",
"homepage": "https://github.com/FogelAI/babel-plugin-transform-barrels",
"main": "src/main.js",
"keywords": [
Expand Down

0 comments on commit ce2e850

Please sign in to comment.